How to Install Docker on Linux Mint 21: A Step-by-Step Guide

Source: How to Install Docker on Linux Mint 21: A Step-by-Step Guide

I found this guide to be concise and accurate as of July 2025 with a up to date LMDE 6.

Basically the commands are:

sudo apt install apt-transport-https ca-certificates curl gnupg
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu jammy stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt update [NOTE: docker shows as source]
sudo apt install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin

At this point you should be able to
sudo docker run hello-world

add your user to the docker group so you do not need to sudo everything

sudo usermod -a -G docker $USER

Leave a Reply

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>