Introduction

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) \
linux-image-extra-virtual

$ sudo apt-get update

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

Add Docker's official GPG key:
$ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -

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

amd64

$ sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"

armhf

$ sudo add-apt-repository "deb [arch=armhf] https://download.docker.com/linux/ubuntu $(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!