Install Docker on Linux Mint 22: 5 Easy Steps and Mistakes

To install Docker on Linux Mint 22 you use Docker's Ubuntu repository, because Mint 22 is built on Ubuntu 24.04 "noble". The one thing that differs from an Ubuntu install is the release name in the repository line. These steps follow the Docker Engine install docs for Ubuntu and were run on 20 November 2026 in the Linux Mint team's linuxmintd/mint22-amd64 container image (Mint 22 "wilma" repositories on an Ubuntu 24.04.5 base), in privileged mode. That gave Docker CE 29.10.0, Compose v5.8.0 and buildx v0.39.1.

A note on Docker's position: the install page says that installing on derivative distributions such as Linux Mint "is not officially supported (though it may work)". It worked in the lab, but keep that in mind if you need vendor support.

Step 1: remove conflicting packages before you install Docker on Linux Mint

Before you install Docker on Linux Mint, check what is already there. Mint, like Ubuntu, offers its own docker.io package. In the lab the candidate was 29.1.3-0ubuntu3~24.04.2, older than Docker's own build. The Docker docs list the packages to remove before installing theirs:

sudo apt remove $(dpkg --get-selections docker.io docker-compose docker-compose-v2 docker-doc docker-buildx podman-docker containerd runc | cut -f1)

Images and volumes in /var/lib/docker are not removed by this.

Step 2: add the repository to install Docker on Linux Mint

The current docs use a key file in /etc/apt/keyrings and a deb822 .sources file:

sudo apt update
sudo apt 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

sudo tee /etc/apt/sources.list.d/docker.sources <<EOF
Types: deb
URIs: https://download.docker.com/linux/ubuntu
Suites: $(. /etc/os-release && echo "${UBUNTU_CODENAME:-$VERSION_CODENAME}")
Components: stable
Architectures: $(dpkg --print-architecture)
Signed-By: /etc/apt/keyrings/docker.asc
EOF
sudo apt update

The Suites line is the part that matters on Linux Mint. It prefers UBUNTU_CODENAME, which is the Ubuntu release Mint is built on, and only falls back to VERSION_CODENAME. Docker publishes packages for Ubuntu release names, not for Mint names such as "wilma".

The old version of this post used $(lsb_release -cs) instead. In the container image both lsb_release -cs and VERSION_CODENAME reported noble, so the old line happened to work there. I could not test an installed Mint desktop, where the release tools may report Mint's own codename; that is the case the docs' UBUNTU_CODENAME form protects against, so use it rather than lsb_release -cs.

Install Docker on Linux Mint 22: repository suite noble, docker-ce 29.10.0 installed, hello-world and the docker group permission error
Lab output in the official Mint 22 container image.
$ cat /etc/apt/sources.list.d/docker.sources | grep Suites
Suites: noble
$ apt-cache policy docker-ce | grep Candidate
  Candidate: 5:29.10.0-1~ubuntu.24.04~noble

Step 3: install Docker on Linux Mint with apt

sudo apt install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin

This is the command that does install Docker on Linux Mint; it took 14 seconds and set up 17 packages in the lab:

Docker version 29.10.0, build fdd4b8e
Docker Compose version v5.8.0

Compose is a plugin now: the command is docker compose (with a space), not the old docker-compose binary the previous version of this page installed separately.

Step 4: start and test the daemon

On a normal Mint install, systemd starts Docker after the package is installed. Check it with sudo systemctl status docker. The container had no systemd, so the client first reported:

failed to connect to the docker API at unix:///var/run/docker.sock; check if the path is correct and if the daemon is running: dial unix /var/run/docker.sock: connect: no such file or directory

That is the same message you will see on a real system when the service is stopped or failed; sudo systemctl start docker and journalctl -u docker are the next steps there. After starting the daemon:

$ docker run --rm hello-world
Hello from Docker!

In this nested lab the default overlay storage failed with failed to mount ... fstype: overlay ... err: invalid argument, and I had to start the daemon with the vfs storage driver. That is a limit of running Docker inside a rootless container, not of Mint; on a real Mint install the default storage works.

Step 5: use Docker without sudo, and what that means

A normal user cannot reach the Docker socket at first:

$ su alice -c "docker ps"
permission denied while trying to connect to the docker API at unix:///var/run/docker.sock
$ ls -l /var/run/docker.sock
srw-rw----. 1 root docker 0 Nov 20 13:06 /var/run/docker.sock

The package created the docker group; adding the user to it works after a new login (or newgrp docker, per the post-install docs):

sudo usermod -aG docker $USER

Read the warning in Docker's post-install page before you do it: "The docker group grants root-level privileges to the user." Anyone in that group can start a container that mounts /. On a personal laptop that may be acceptable. On a shared machine, use sudo or rootless mode instead.

Common mistakes when you install Docker on Linux Mint

  1. Using a Mint codename in the repository. Use UBUNTU_CODENAME as the docs do.
  2. Mixing docker.io and docker-ce. Remove the distribution packages first.
  3. Old key method. The previous post stored the key in /usr/share/keyrings with a .list file; it still works, but follow the current docs layout so updates and removal match the documentation.
  4. Installing the separate docker-compose binary. Use the plugin.
  5. Forgetting what the docker group means. It is root access.

Should you install Docker on Linux Mint from Mint's repositories instead?

You can: sudo apt install docker.io uses the package the Mint repositories pass through from Ubuntu, and it updates with the rest of the system. The trade-off is version and packaging. In the lab, the distribution package was 29.1.3 while Docker's repository offered 29.10.0. When you install Docker on Linux Mint for development and want current features and the docs to match what you have, use Docker's repository. For a machine that should change as little as possible, the distribution package is a reasonable choice. Do not install both.

Uninstall

sudo apt purge docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
sudo rm -rf /var/lib/docker /var/lib/containerd
sudo rm /etc/apt/sources.list.d/docker.sources /etc/apt/keyrings/docker.asc

After the purge in the lab, /var/lib/docker was still there; the data directories must be removed by hand, as the docs show.

Once you install Docker on Linux Mint, the next steps: keep data safe with Docker volumes, move images between machines with docker save and load, or compare engines in Docker alternatives: Podman and containerd.

FAQ

Which Ubuntu version is Linux Mint 22 based on?

Ubuntu 24.04 "noble". In the Mint 22 image, UBUNTU_CODENAME=noble, and Docker's repository served the ~ubuntu.24.04~noble packages.

Is it supported to install Docker on Linux Mint?

Docker's docs say derivative distributions such as Linux Mint are not officially supported, though it may work. It installed and ran in this test.

Sources: Install Docker Engine on Ubuntu and the Linux post-installation steps, read 20 November 2026.

Comments

Popular posts from this blog

Linux Desktop Frozen? 5 Proven Fixes Before a Hard Reboot

Minecraft Bedrock on Linux: 4 Proven Ways to Play in 2026

DXVK in Wine on Linux: 7 Easy Setup Steps, Tested