D ocker was a buzzword in the modern Tech world, In the previous blog , we have discussed the docker and installing docker on centos7. In ...
Docker was a buzzword in the modern Tech world, In the previous blog, we have discussed the docker and installing docker on centos7.
In this blog, we are going to install the docker for ubuntu 16.04.
Step1: To add the GPG key for the official Docker repository to our local ubuntu system.
Command: curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
In ubuntu Curl is not installed, so need to install curl
Command: apt-get install curl
Step2: To add the Docker repository to APT sources in the local system.
Command: add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
Step3: Update the Debian.
Command: apt-get install -y docker-ce
Step5: Checking the docker running status.
Command: systemctl status docker
Step6: Now the docker was installed successfully, we can check the version of installed docker.
Command: docker -v
Step6: Check the docker default image by running the below command.
Command: docker run hello-world
It shows the welcome images
Step7: Check the docker images in our system.
Command: docker images
Now we have successfully set up and installed the docker in ubuntu16.04.