How to install Docker on Ubuntu 16.04
Docker is a opensource platform, Docker help us to deploy the code to shift the code and run the application in production environment.
Docker engine allow us to create number of containers, Containers are not the complete operating system, The operating system is with host OS.Containers only have the required binaries and libraries which support the application.
Basically in Docker technology we need single operating system which we called host OS.
on single OS we can create number of containers and this containers hold the applications.
Docker is available in two edition, Docker community edition and docket enterprise edition, Docker community addition. Just take Docker CE if you don't have any idea which to take.
64 bit ubuntu 16.4
3.11.0-15-generic or higher kernel
To check your operating system kernel version :
root@ip-10-0-1-59:~# uname -a
Linux ip-10-0-1-59 4.4.0-1052-aws #61-Ubuntu SMP Mon Feb 12 23:05:58 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
Install the community edition, add the GPG key :
#curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
Add the docker repository :
#add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
To make sure, you're going to install docker from Docker repo :
#apt-cache policy docker-ce
Install docker :
apt-get install -y docker-ce
It would be running by default, but you can check the status :
#systemctl status docker
To check docker version :
Docker version 17.12.1-ce, build 7390fc6
In next article i will show you how to create and use of Docker images.