Docker
Docker installation
More information on supported platforms and installation guides on the official Docker documentation https://docs.docker.com/engine/install/
Ubuntu
To install Docker Engine, you need the 64-bit version of one of these Ubuntu versions:
- Ubuntu Oracular 24.10
- Ubuntu Noble 24.04 (LTS)
- Ubuntu Jammy 22.04 (LTS)
- Ubuntu Focal 20.04 (LTS)
Set the Docker apt repository:
# Add Docker's official GPG key:
sudo apt-get update
sudo apt-get install ca-certificates curl
sudo install -m 0755 -d /etc/apt/keyrings
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
sudo chmod a+r /etc/apt/keyrings/docker.asc
# Add the repository to Apt sources:
echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \
$(. /etc/os-release && echo "${UBUNTU_CODENAME:-$VERSION_CODENAME}") stable" | \
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update
To install the latest version, run:
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
Verify that the installation is successful with:
sudo docker run hello-world
Debian
To install Docker Engine, you need the 64-bit version of one of these Debian versions:
- Debian Trixie 13 (testing)
- Debian Bookworm 12 (stable)
- Debian Bullseye 11 (oldstable)
Set up Docker's apt repository:
sudo apt-get update
sudo apt-get install ca-certificates curl
sudo install -m 0755 -d /etc/apt/keyrings
sudo curl -fsSL https://download.docker.com/linux/debian/gpg -o /etc/apt/keyrings/docker.asc
sudo chmod a+r /etc/apt/keyrings/docker.asc
# Add the repository to Apt sources:
echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/debian \
$(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update
To install the latest version, run:
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
Verify that the installation is successful with:
sudo docker run hello-world
Red Hat
To install Docker Engine, you need a maintained version of one of the following RHEL versions:
- RHEL 8
- RHEL 9
Set up the repository
Install the dnf-plugins-core package (which provides the commands to manage your DNF repositories) and set up the repository.
sudo dnf -y install dnf-plugins-core
sudo dnf config-manager --add-repo https://download.docker.com/linux/rhel/docker-ce.repo
To install the latest version, run:
sudo dnf install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
This command installs Docker, but it doesn't start Docker.
Start Docker Engine:
sudo systemctl enable --now docker
Verify that the installation is successful with:
sudo docker run hello-world
Fedora
To install Docker Engine, you need a maintained version of one of the following Fedora versions:
- Fedora 42
- Fedora 41
- Fedora 40
Set up the repository
Install the dnf-plugins-core package (which provides the commands to manage your DNF repositories) and set up the repository.
sudo dnf -y install dnf-plugins-core
sudo dnf-3 config-manager --add-repo https://download.docker.com/linux/fedora/docker-ce.repo
To install the latest version, run:
sudo dnf install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
This command installs Docker, but it doesn't start Docker.
Start Docker Engine:
sudo systemctl enable --now docker
Verify that the installation is successful with:
sudo docker run hello-world
Windows
Prerequisites:
- A 64-bit version of Windows 10 or newer
- CPU with virtualization support
- WSL 2 enabled
To install WSL on windows run on a cmd
wsl --install
If you have WSL already installed ensure it's updated to WSL 2
wsl --update
wsl --set-default-version 2
Download and Install Docker Desktop from the official website https://docs.docker.com/get-started/get-docker/
Follow the prompts to install Docker Desktop, ensuring "Install required Windows components for WSL 2" is checked.
Restart if needed.
Verify that both Docker and Docker compose are installed with:
docker --version
docker-compose --version
sudo docker run hello-world