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.


  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 customized 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, if it may be outdated. 

~# sudo apt-get remove docker docker-engine

Docker Installation:

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

~# sudo apt install

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


For a successful docker installation on Ubuntu, follow the steps from the prerequisites, commands, and learn the steps to enable and disable docker easily.

Technologywe use

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