How to Install Docker on Ubuntu 18.04 version

11 May 2021

blog details

How to Install Docker on Ubuntu 18.04 version

By: RSDigitech | Published At : 11 May 2021    


Steps to Install Docker on Ubuntu 18.04

Docker, the best container technology that allows users to quickly build, test, and deploy their applications. It simplifies the processes of managing processes in containers, but containers are much lightweight, are easier to manage, and add less overhead. Hence, you Can create your custom environments that can include a variety of operating systems and developing frameworks.

Pre-requisites:

  1. Ubuntu 18.04 64-bit operating system.
  2. Your user account with sudo permission.
  3. You need to sign up on Docker Hub if you want to create your customize images and push them to Docker Hub.

Update Repository:

While entering into our machine we need to update our system because of the local database of your software to make sure that there is access to the latest revisions.

To use the following command 

~# sudo apt-get update

Remove any older versions:

You need to remove any older version of docker, it may be outdated. 

~# sudo apt-get remove docker docker-engine docker.io

Docker Installation:

To install a Docker on Ubuntu, execute the following command.

~# sudo apt install docker.io

install docker

Enter Y to continue.

How to Enable and Start Docker:

We need to enable and start Docker, by using the following commands.

~# systemct1 enable docker

~# systemct1 start docker

 Verifying the Docker Version:

We need to verify the Docker version.

docker version

To verify the Docker is active or not, use the following command

# sudo systemct1 status docker

docker status

 To find out all information about docker, use this command.

# docker info

docker info

 

Technologywe use

  • PHP
  • Angular
  • Android
  • Laravel
  • Salesforce
  • Tibco
  • Mulesoft