Docker is an open-source containerization technology that is designed to create, deploy and run container-based applications. In this article, you will learn how to install the Docker Community Edition (CE) on Linux Mint 20.
@Mixel's answer worked great for the Ubuntu-based docker image we have. However, we also have a centos-based docker image for testing recipes via chef (using the kitchen-docker driver). One of the packages we pre-install was failing to install due to no locale being set. In order to get a locale installed, I had to run the following. For Focal, docker.io is currently (Apr 24, 2020) at 19.03.8-0ubuntu1, which is satisfactorily new for the majority of Docker workloads. Don't install docker by mistake - it used to be the system tray application, which has since been replaced by gnome-shell-extension-ubuntu-dock. Docker has not released the repository for focal fossa (20.04) yet. As @Wared said, running. Sudo apt install -y docker.io. Will get docker from ubuntu repository. I am able to use all my docker images that I used to in 18.04 successfully on 20.04 with this docker installation.
If you have any older version of docker already installed in your machine you have to remove it.
Let’s get started…
How to Install Docker in Linux Mint
Now there are three ways you can install Docker in Linux Mint.
- Setting up docker repository.
- Download and install the .deb package locally.
- Using Docker installation script.
1. Install Docker Using Repository
Using this method we will add the Docker repository to the apt package manager index and will install the docker from there. By default apt will not support HTTPS, you have to enable it.
Now add GPG key for docker.
Docker Focal 7

Now add the stable repository. As per the official documentation, if you use Linux Mint and if you face any installation issue then replace $(lsb_release -cs)
with your parent Ubuntu distribution. In my case, my parent ubuntu distribution will be focal.
Update the repository and install the docker package using the below command.
2. Install Docker Manually Using Deb Package
In this method, we will download the .deb
file and install it locally using the apt or dpkg command. Go to the docker index page from where you can download the .deb
file. If you take a look at the below image there is no package for ulyana so I will download .deb
from focal.
You can go inside “ubuntu/dists/focal/pool/stable/amd64/” and download .deb
package for the Docker Engine version you wish to install.
Once you have downloaded the packages go inside the directory where the file is downloaded and run the following command.
3. Install Docker Using Installation Script
In this method, you will install docker using a shell script which will take care of installing docker in your machine. This script will try to install the latest version that is released under the edge channel. If you already have docker installed in your machine, running this script will cause issues. Run the following command to download and run the script.
How to Validate the Docker Installation
You can choose any of the three methods described in previous sections for installing docker. Once the installation is completed you can run the “hello-world” container to check if your installation is successful.
To check the docker version run the following command.
Docker Focalboard
In Ubuntu-based distribution, docker will be automatically started and enabled to start during boot.
How to Run Docker as a Normal User
Instead of binding with TCP socket docker binds with Unix socket which is accessible only by root. If you wish not to use sudo every time to work with docker then you can create a group called docker and add non-root users into the group.
Now open a new terminal and run the hello-world container without sudo. From the below image you can see I am able to successfully run the container without sudo privilege.
Docker Focal Fossa
That’s it for this article. If you have any feedback use the comment section.