How to install Docker CE on MX Linux

- Advertisment -

Here are simple steps and command to install and run Docker CE on MX Linux. Also, know how we can pull Docker images from Docker hub.

MX Linux which would quite new for some people, however, not its core. This Linux operating system is lightweight, meant to run on both old and newer hardware or PC. MX Linux is a mixture of AntiX that gives it a core while other features it borrowed from MEPIS. Here we will talk about how one can run Docker containerized virtualization platform on MX Linux. Let’s get started.

If you accidentally stumbled on this article, then you can see first MX Linux installation on VirtualBox, to understand and see its interface. And don’t worry, this Linux also uses APT, thus those are coming from Debian or Ubuntu background they would not have any problem in using it.

Step for Docker-CE Installation on MX Linux

Here we are using MX Linux 19, however, the steps would be the same for MX Linux 18 and 17.

Update MX Linux system

Open command terminal on MX Linux and first-run system update command to make sure everything is up to date.

sudo apt update

Setup Docker repository key

Apart from its own MXrepo, MX Linux also uses Debian and few other repositories, however, Docker is not available in the official ones, thus we need to have it add it manually. Therefore, first, we import its repo key.

wget -O docker.gpg https://download.docker.com/linux/debian/gpg
Add Docker repository on MX linux

Verify and add Docker repo-key to apt’s keyring

Use this command to check whether the imported key is genuine or not and after that same will be added to apt’s trusted keyring.

gpg --keyid-format 0xlong docker.gpg 2>/dev/null | grep -sq 0x8D81803C0EBFCD88 && sudo apt-key add docker.gpg

Add Docker repo in MX Linux

Here is the command to add Docker repo on MX Linux.

echo "deb [arch=amd64] https://download.docker.com/linux/debian buster stable" | sudo tee
 /etc/apt/sources.list.d/docker.list

Note: Here we are installing Docker on MX Linux 19 whose code name is a buster. If you are using MX Linux 18, then replace buster in the above command with Strech.

Run system update command

After adding the repo, again run system update command, so that it can recognize the added repo and purge the cache.

sudo apt update

Output for the above command:

h2s@h2s:~
$ sudo apt update
Get:1 https://download.docker.com/linux/debian buster InRelease [44.4 kB] 
Get:2 http://deb.debian.org/debian buster-updates InRelease [49.3 kB] 
Hit:3 http://mxrepo.com/mx/repo buster InRelease 
Get:4 http://iso.mxrepo.com/antix/buster buster InRelease [27.3 kB] 
Get:5 https://download.docker.com/linux/debian buster/stable amd64 Packages [10.1 kB] 
Hit:6 http://deb.debian.org/debian buster InRelease 
Get:7 http://iso.mxrepo.com/antix/buster buster/main i386 Packages [204 kB]
Get:8 http://deb.debian.org/debian-security buster/updates InRelease [39.1 kB]
Get:9 http://iso.mxrepo.com/antix/buster buster/main amd64 Packages [210 kB] 
Fetched 585 kB in 23s (25.8 kB/s) 
Reading package lists... Done
Building dependency tree 
Reading state information... Done
50 packages can be upgraded. Run 'apt list --upgradable' to see them.
h2s@h2s:~
$

Command to install Docker on MX Linux

Finally, here is the command download and setup Docker:

sudo apt install docker-ce

After the installation, it automatically gets started no need to do anything else.

apt install docker on mx linux

Run Docker without sudo

By default, with every command of Docker we have to use sudo, it is because this container platform only runs on root-level permission.  While installing, it already has created a docker group that can access Unix socket owned only by the root user, so to add your current user in its group to run Docker commands without sudo, use this syntax.

sudo usermod -aG docker $USER

Note: Replace $USER with your default or current user with your are working on MX Linux.

Install Linux Image from Docker Hub

So, let’s try to set up Ubuntu on the MX Linux installed Docker to see whether it is working fine or not.

Here is the command to fetch Ubuntu image:

docker pull ubuntu

The above command by default it pulls the Ubuntu latest image available on Docker hub to install for the container.

Run the pulled image:

Now to run Ubuntu, type

docker run -t ubuntu
docker install ubuntu MX linux

In this way we can set up a containerized virtualization platform on MX Linux, of you, want o know anything else, let us now, the comment section is all yours!

Know more about Docker and its installations on Windows and Linux


H2S Media Team
H2S is a group of tech enthusiasts those are passionate about latest technology developments. They always like to solve own technical problems and share the same solution with others through this Website.

1 COMMENT

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Latest Posts

Best Way to find new Movies or TV series to Watch

Do you want to know how to discover something new to watch, I mean quality video content? If you...

What is Xbox Project Scarlett? Anaconda or Lockhart

Now the time of 9th gen gaming console is about to meet an end. Even the primary level 10th...

How to install Microsoft Teams Linux on Ubuntu and CentOS

Microsoft teams which is a part of Office 365 application and work as a chatting application...

TEAMGROUP releases T-FORCE Coolant Kit CK5 & ARGB LED Uniform Strip

TEAMGROUP releases T-FORCE Coolant Kit CK5 and T-FORCE ARGB LED Uniform Strip which are specially designed for CARDEA LIQUID...
- Advertisement -

BRIX Launches USB 3.1 Type-C OTG Card Reader on Amazon

Press release: BRIX, today announced the launch of USB 3.1 Type-C OTG Card Reader on Amazon. This device is...

Pebble introduces its newest Wireless Neckband earphones Urbane

Pebble launches its newest Wireless Neckband earphones ‘Urbane’, with soft silicone neckband to make it a comfortable wireless neckband....
- Advertisement -

You might also likeRELATED
Recommended to you