OS requirements:
To install Docker Engine, you need the 64-bit version of one of these Ubuntu versions:
- Ubuntu Kinetic 22.10
- Ubuntu Jammy 22.04 (LTS)
- Ubuntu Focal 20.04 (LTS)
- Ubuntu Bionic 18.04 (LTS)
Step 1 : Uninstall old versions
- Older versions of Docker went by the names of
docker
,docker.io
, ordocker-engine
. Uninstall any such older versions before attempting to install a new version:- sudo apt-get remove docker docker-engine docker.io containerd runc
- It’s OK if
apt-get
reports that none of these packages are installed.
Step 2 : Install Docker Engine
- Update the
apt
package index:- sudo apt-get update
- Install Docker Engine, containerd, and Docker Compose.
- sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin