How To Install Docker on Ubuntu 16.04
What is the Docker
Docker is the elegant way to deploy and run application inside the container.its like a virtual machine.but its more dependent on host operating system .Docker image contain the basic core of the OS .Inside that basic core OS you can install any software and setup the application requirements.Docker containers are compact and portable.Suppose you have a python application and you need to lots of module and frameworks.so you can build this application to run inside the docker container.so all the frameworks and application run inside the docker environment and does not affected to the host machine.
You can store docker image inside the docker image registry and any time you can pull and run your application in any host that support docker.inside single host machine you can run more and more docker containers without interfering other applications.
Lets install Docker inside Ubuntu.
Install Docker on Ubuntu 16.04
Add gpg key for docker repository
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add –
Add repository source
sudo add-apt-repository “deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable”
Next update the system
sudo apt-get update
Install Docker Engine
sudo apt-get install -y docker-ce
Check docker engine start at system start
systemctl is-enabled docker
Now we can add non root users to docker group
usermod -aG docker sameera
sameera is my non root user
lets check running containers
there is no containers running this time.
Lets try non root user can pass command to docker.previous step we have add sameera user to docker group
change user to sameera
sudo su sameera
lets try to check running containers
Non root user also can pass command to docker engine now
i hope in this post you will get basic idea of the docker containers.next post i will discuss docker commands docker images and more stuff.
if you think this will useful please share on Facebook Twitter among your Friends.
see you in next tutorial
have a nice Day