Install Docker on Linux Mint


  • Introduction
  • Install commands
  • Check status

While Linux Mint is one of the leanest, most efficient, highest performing distributions we’ve worked with, it does feature an awkward quirk in that while Linux Mint is Ubuntu based, and each version features a different “Code Name” Linux Mint features a different “Code Name” than the current Ubuntu Linux. As such, when we attempt to install some software, where the “Code Name” is queried, it will not pull correct software. Thus, we need to go through a few extra steps when we install software packages, such as Docker, we need to go through some additional steps.


Update apt with

sudo apt-get update

Install certificates

sudo apt-get install ca-certificates curl gnupg

Add Docker’s official GPG key

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 Docker repository with the correct Ubuntu code name

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") stable" | \
  sudo tee /etc/apt/sources.list.d/docker.list > /dev/null

Update the package index

sudo apt-get update

Install Docker

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

Check to make certain that docker is running

sudo docker ps

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *