These are the steps for installing docker on Ubuntu machine.
1 sudo apt-get update
2 sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
3 sudo apt-add-repository 'deb https://apt.dockerproject.org/repo ubuntu-xenial main'
4 sudo apt-get update
5 apt-cache policy docker-engine
6 sudo apt-get install -y docker-engine
7 sudo systemctl status docker
8 docker
9 docker info
10 sudo docker info
11 docker run hello-world
12 sudo docker run hello-world
13 docker search ubuntu
14 sudo docker search ubuntu
15 history
1 sudo apt-get update
2 sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
3 sudo apt-add-repository 'deb https://apt.dockerproject.org/repo ubuntu-xenial main'
4 sudo apt-get update
5 apt-cache policy docker-engine
6 sudo apt-get install -y docker-engine
7 sudo systemctl status docker
8 docker
9 docker info
10 sudo docker info
11 docker run hello-world
12 sudo docker run hello-world
13 docker search ubuntu
14 sudo docker search ubuntu
15 history