Today we’re going to be installing Docker on Ubuntu 17.04, first of all make sure you are logged into the host you would like to install Docker on, ready?

Ok, next issue the following commands:

$ sudo apt-get install \
linux-image-extra-$(uname -r) \

$ sudo apt-get update

$ sudo apt-get install \
apt-transport-https \
ca-certificates \
curl \

Add Docker's official GPG key:
$ curl -fsSL | sudo apt-key add -

Use the following commands to set up the stable repository. Choose the architecture that matches your computer:


$ sudo add-apt-repository "deb [arch=amd64] $(lsb_release -cs) stable"


$ sudo add-apt-repository "deb [arch=armhf] $(lsb_release -cs) stable"

And now to install Docker,

$ sudo apt-get update

$ sudo apt-get install docker-ce

Test that docker is running and fully installed:

$ sudo docker run hello-world

Congrats! You have now successfully installed Docker on Ubuntu 17.04!

If you’re having issues with running docker without using sudo all you need to do is:

$ sudo usermod -a -G docker userName

If you have any issues sound off in the comments!