Monday, February 3, 2020

Install Docker Ubuntu - How to install Docker in Ubuntu 16.0.4? setup Docker on Ubuntu

Please find the steps needed for installing Docker in Ubuntu 16.0.4 instance.

sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
sudo apt-get update
sudo apt-cache policy docker-ce
sudo apt-get install -y docker-ce
sudo systemctl status docker

now press q to come out this.
ps -ef | grep docker

docker --version

sudo docker run hello-world

the above command should display the below message..

you should see below message 
Hello from Docker!
This message shows that your installation appears to be working correctly.

Also, create an account(keep all lowercase in your username)  in the below website for storing docker images in public docker registry..

1 comment: