DEV Community

Mrityunjaya Prajapati
Mrityunjaya Prajapati

Posted on

1 1

How To Install Docker on Ubuntu 20.04

Docker is an application that simplifies the process of managing application processes in containers. Containers run your applications in resource-isolated processes. Containers are similar to virtual machines, but they are more portable, resource-friendly, and dependent on the host operating system.

In this tutorial, we will install Docker on Ubuntu 20.04 and use basic commands to get you started.

Prerequisites

  • Ubuntu 20.04 Installed on 64-bit operating system
  • A user account with sudo privileges

Installing Docker from Official Repository

Step 1: Updating the Software Repository

sudo apt update

Step 2: Downloading Dependencies

sudo apt-get install apt-transport-https ca-certificates curl software-properties-common

Step 3: Adding Docker’s GPG Key

curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -

Step 4: Installing the Docker Repository

sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"

Step 5: Installing the Latest Docker

sudo apt-get install docker-ce

Step 6: Verifying Docker Installation

docker --version

Docker Version

Step 7: Enable Docker Service

To start the Docker service run the following commands:

sudo systemctl start docker

Enable Docker to run at startup with:

sudo systemctl enable docker

To check the status of the service, use the command:

sudo systemctl status docker

Docker Running Status

If this tutorial helps you, please hit the Clap button or comment if you have any suggestion or feedback.

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

Top comments (0)

Image of Docusign

🛠️ Bring your solution into Docusign. Reach over 1.6M customers.

Docusign is now extensible. Overcome challenges with disconnected products and inaccessible data by bringing your solutions into Docusign and publishing to 1.6M customers in the App Center.

Learn more