[2 min installs] Docker on Ubuntu

Better Stack Team
Updated on August 30, 2022

Here is how to install Docker on your Ubuntu 20.04 system in under two minutes:

Step 1 - Download Docker package

Go to https://download.docker.com/linux/ubuntu/dists/, choose your Ubuntu version, then browse to pool/stable/, choose amd64armhfarm64, or s390x, and download the .deb file for the Docker Engine version you want to install.

Step 2 - Install Docker Engine

Install Docker Engine, changing the path below to the path where you downloaded the Docker package

sudo dpkg -i /path/to/package.deb
Copied!

The Docker daemon starts automatically

That’s it

You have successfully installed Docker on your system. Verify that Docker Engine is installed correctly by running the hello-world image.

sudo docker run hello-world
Copied!

This command downloads a test image and runs it in a container. When the container runs, it prints a message and exits.

Check Uptime, Ping, Ports, SSL and more.
Get Slack, SMS and phone incident alerts.
Easy on-call duty scheduling.
Create free status page on your domain.
Got an article suggestion? Let us know
Next article
[2 min installs] Git on Ubuntu
Licensed under CC-BY-NC-SA

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.