Docker is a container based on the “Platform as a Service” software application. Docker uses virtualization technology to provide isolated containers for software and tools. These containers use well-defined channels to communicate with each other. This article will show you the easiest way to install Docker on Ubuntu 20.04 and get it running in less than 5 minutes.

How to Install and Configure Docker on Ubuntu 20.04 Docker ubuntu

This simple tutorial will show you how to download Docker, enable or disable Docker upon system reboot/startup, and change usage permissions for users in six easy steps.

Step 1: Update APT

As always, first, update and upgrade your APT.

How to Install and Configure Docker on Ubuntu 20.04 Docker ubuntu

How to Install and Configure Docker on Ubuntu 20.04 Docker ubuntu

Step 2: Download and Install Docker

Enter the following command to download and install the Docker package.

$ sudo apt install docker.io

How to Install and Configure Docker on Ubuntu 20.04 Docker ubuntu

Step 3: Launch Docker

Start Docker and enter the following command to enable it after every time the system reboots.

$ sudo systemctl enable –now docker

How to Install and Configure Docker on Ubuntu 20.04 Docker ubuntu

To disable it again, simply type in the following command.

$ sudo systemctl disable –now docker

How to Install and Configure Docker on Ubuntu 20.04 Docker ubuntu

Step 4: Set User Privileges

This step will show you how to give privileges to any user with Docker. You can replace “younis” with the user account you are giving permission.

$ sudo usermod -aG docker younis

How to Install and Configure Docker on Ubuntu 20.04 Docker ubuntu

Step 5: Check Docker Version

You can check the version of Docker with the following command.

How to Install and Configure Docker on Ubuntu 20.04 Docker ubuntu

Step 6: Test Docker

Test Docker by running the following command, which will open a container to run the Hello World command.

How to Install and Configure Docker on Ubuntu 20.04 Docker ubuntu

Conclusion

Docker is a very useful tool for working with third-party software tools, as it establishes well-defined and secure channels for communication. Because it is so useful, Docker is becoming more popular day by day.

About the author

How to Install and Configure Docker on Ubuntu 20.04 Docker ubuntu

Younis Said

I am a freelancing software project developer, a software engineering graduate and a content writer. I love working with Linux and open-source software.