Docker can help a user to develop, deploy and run an application on a container, a container will run by running an image which is an exceutable package that includes everything needed to run an application --the code, a runtime, libraries, environment variables, and configuration files. This document will help in basic setup of a docker.
OS: Ubuntu 16.04 LTS
sudo apt-get remove docker docker-engine docker.io
sudo apt-get update
sudo apt-get install apt-transport-https ca-certificates curl software- properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo apt-key fingerprint 0EBFCD88
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu
xenial
stable"
sudo apt-get update
sudo apt-get install docker-ce
sudo docker run hello-world
Optional steps to create the docker group and add your user(this will let a user use docker commands without using sudo)
sudo groupadd docker
sudo usermod -aG docker $USER
docker run hello-world