Install Docker Engine on Ubuntu
Prerequisites
OS requirements (21.11.22)
To install Docker Engine, you need the 64-bit version of one of these Ubuntu versions:
- Ubuntu Impish 21.10
- Ubuntu Hirsute 21.04
- Ubuntu Focal 20.04 (LTS)
- Ubuntu Bionic 18.04 (LTS)
Install using the repository
Before you install Docker Engine for the first time on a new host machine, you need to set up the Docker repository. Afterward, you can install and update Docker from the repository.
Set up the repository
-
Update the apt package index and install packages to allow apt to use a repository over HTTPS:
-
Add Dockerβs official GPG key
-
Set up the repository
Install Docker Engine
-
Update the
apt
package index -
Install the latest version of Docker Engine and containerd β¦
-
Verify that Docker Engine is installed correctly by running the
hello-world
image.