Install Docker on Ubuntu 16.04
In this article, I will guide you through Docker installation in Ubuntu 16.04.x (xenial).
You can choose another system, but the instructions provided to install docker will only work on ubuntu xenial.
Following are the steps to install Docker service in Ubuntu.
Step 1
An update must be performed first so that apt-get knows that new versions of packages are available.
$ sudo apt-get update
Step 2
apt-key is used to manage the list of keys used by apt to authenticate packages. Packages which have been authenticated using these keys will be considered trusted.
$ sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
Step 3
apt-add-repository
is a script which adds an external APT repository to either /etc/apt/sources.list
or a file in /etc/apt/sources.list.d/
or removes an already existing repository.
$ sudo apt-add-repository 'deb https://apt.dockerproject.org/repo ubuntu-xenial main'
Step 4
Once again performing update.
$ sudo apt-get update
Step 5
Installing docker-engine
$ sudo apt-get install -y docker-engine
Step 6
Enabling docker service.
$ sudo systemctl enable docker
Check which Docker version is installed.
$ sudo docker -v Docker version 17.05.0-ce, build 89658be
1,953 total views, 1 views today