Wednesday, September 06, 2017

How to install Docker on Ubuntu 16.04

Nowadays, docker is going to use globally. As a developer, it will help me a lot with this:

  • Escape app dependency
  • works with any technology
  • Easy to share via repo
Here are few steps for easy installation of Docker in Ubuntu 16.04

Install packages to allow apt to use a repository over HTTPS:
sudo apt-get install apt-transport-https ca-certificates curl software-properties-common
Add the GPG key for the official Docker repository to the system:
curl -fsSL | sudo apt-key add -
Add the Docker repository to APT sources:
sudo add-apt-repository "deb [arch=amd64] $(lsb_release -cs) stable"

Now update the package for Docker
sudo apt-get update
Now, Install Docker with:
sudo apt-get install -y docker-ce
Check if Docker is running or not with
sudo systemctl status docker
Now you can check that if you are able to access and download Docker images from Docker hub or not with "Hello World" image
docker run hello-world

If it will give you permission error due to sudo then add sudo with command

If image is not searchable on locally then it will get it from Docker hub

Sachin New 

Sachin 10 Oct 

Steve Single Product 

1 comment:

  1. Great job for publishing such a nice article. Your article isn’t only useful but it is additionally really informative. Thank you because you have been willing to share information with us. Business IT Support