SystemMen - 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
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 https://download.docker.com/linux/ubuntu/gpg | 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
You type the command below.
danie@linuxmint ~ $ lsb_release -cs sylvia
For example, my computer is using the
sylvia version, your computer may be a
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] https://download.docker.com/linux/ubuntu 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
$ 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.If you liked this article, then please subscribe to our YouTube Channel for more video tutorials. You can also find us on Twitter and Facebook.
If you appreciate what we share in this blog, you can support us by:
- Stay connected to: Facebook | Twitter | Google Plus | YouTube
- Subscribe email to recieve new posts from us: Sign up now.
- Start your own blog with SSD VPS - Free Let's Encrypt SSL ($2.5/month).
- Become a Supporter - Make a contribution via PayPal.
- Support us by purchasing Ribbon Lite Child theme being using on this website.
We are thankful for your support.