How to install Docker on Linux Mint 18

by Daniel Pham
Published: Updated:
This entry is part 2 of 4 in the series Instructions for installing and using the Docker

This article will guide you to install Docker on Linux Mint.

Docker is mainly used on Linux computers, including servers and personal computers. Developers can install Docker on their computers and create perfect dev environments.

Add Docker GPG key to Linux Mint

You can switch to user root to execute commands or use sudo.

Update the package.

sudo apt-get update -y

Because we need to add Docker repository to the computer and to avoid encountering errors when adding GPG key, we will install packages according to the following command.

sudo apt-get install apt-transport-https ca-certificates curl software-properties-common -y

Next, we add Docker’s official GPG key.

curl -fsSL | sudo apt-key add -

Now we will check if the added key matches the following text range

9DC8 5822 9FC7 DD38 854A E2D8 8D81 803C 0EBF CD88

The command to check.

sudo apt-key fingerprint 0EBFCD88

Check your distribution name

You know, the Linux Mint or Ubuntu versions have their names, in order to be able to add the exact repository for your OS version, you need to specify the name first.

Recommended Reading: Install Ansible AWX on CentOS 7

how to install docker on linux mint 18
How to install Docker on Linux Mint 18.

You type the command below.

danie@linuxmint ~ $ lsb_release -cs

For example, my computer is using the sylvia version, your computer may be a xenial example.

Add repository and install Docker in Linux Mint

Now, type the following command to add a repository to your computer. Replace the word sylvia with your operating system name.

sudo add-apt-repository "deb [arch=amd64] sylvia stable"

Then, we update the software packages in the computer.

sudo apt-get update -y

Finally, run the following command to install Docker.

sudo apt-get install docker-ce -y

You can verify whether Docker CE is installed correctly by creating a container with the hello-world image.

sudo docker run hello-world


So you have successfully installed Docker CE on your computer, you can try to create some simple containers to experience Docker.

In the next article, we will learn how to work with Docker.

(This is an article from my old blog that has been inactive for a long time, I don’t want to throw it away so I will keep it and hope it helps someone).

0 0 votes
Article Rating
Series Navigation«« Previous part: Introduction to Docker technologyNext part: How to search for a container image »»

You may also like

Notify of
Inline Feedbacks
View all comments

DevOps Lite is a personal blog specializing in technology with main topics about DevOps, DevSecOps, SRE and System Administrator. Articles are shared for free and contributed to the community.



Subscribe my Newsletter for new blog posts. Stay updated from your inbox!

© 2021-2024 – All rights reserved.

Please write sources “” when using articles from this website.

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Read More

Would love your thoughts, please comment.x

Adblock Detected

Please support us by disabling your AdBlocker extension from your browsers for our website.