top ad article

Docker is a software solution created to help you create, deploy and run containerized applications. With containers an application can be packaged as a single unit(container) with its dependencies and libraries, making it easy to ship across infrastructures and cloud environments. In this short article we explain how to install Docker CE on MX Linux 19 system.

There are two standard editions of Docker Engine that can be installed on MX Linux 19:

  • Docker Enterprise edition
  • Docker Community edition

Here we’ll perform an installation of Docker CE on MX Linux 19. This is a free to use edition, but without technical support from Docker Inc. If you’re keen on support consider switching to Docker Enterprise release.

Step 1: Add Docker CE repository

Perform APT package index update:

$ sudo apt update
[sudo] password for daylifetips: 
Get:1 buster InRelease [19.8 kB]
Get:2 buster/main amd64 Packages [423 kB]
Get:3 buster-updates InRelease [51.9 kB]                              
Get:4 buster/main i386 Packages [415 kB] 
Hit:5 buster InRelease                                                
Get:6 stable InRelease [2,591 B] 
Get:7 buster/updates InRelease [65.4 kB]
Get:8 stable InRelease [1,811 B]
Get:9 stable/non-free amd64 Packages [1,817 B]
Get:10 buster/updates/main amd64 Packages [270 kB]
Get:11 stable/main amd64 Packages [1,063 B]
Get:12 buster/updates/main i386 Packages [269 kB]
Get:13 buster/updates/main Translation-en [145 kB]
Fetched 1,666 kB in 2s (820 kB/s)                            
Reading package lists... Done
Building dependency tree       
Reading state information... Done

Install below tools which are dependent in repository addition.

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

Add Docker’s official GPG key:

curl -fsSL | sudo apt-key add -

Add Docker CE repository on MX Linux system.

sudo add-apt-repository "deb [arch=amd64] $(lsb_release -cs) stable"

Step 2: Install Docker CE on MX Linux 19

Update the apt package index:

$ sudo apt-get update
Hit:1 buster InRelease
Get:2 buster InRelease [44.4 kB]                          
Hit:3 stable InRelease                                       
Hit:4 buster-updates InRelease                                        
Get:5 buster/stable amd64 Packages [15.7 kB]
Hit:6 buster InRelease                       
Hit:7 stable InRelease
Hit:8 buster/updates InRelease
Fetched 60.2 kB in 1s (57.7 kB/s)
Reading package lists... Done

Run below commands to install Docker CE on MX Linux 19:

sudo apt install docker-ce docker-ce-cli

Start Docker service

$ sudo service docker start
[....] Starting Docker:

Enable docker service

$ sudo update-rc.d docker enable

Add your user account to docker group:

sudo usermod -aG docker $USER
newgrp $USER

Check Docker version:

$ sudo docker version
Client: Docker Engine - Community
 Version:           20.10.2
 API version:       1.41
 Go version:        go1.13.15
 Git commit:        2291f61
 Built:             Mon Dec 28 16:17:34 2020
 OS/Arch:           linux/amd64
 Context:           default
 Experimental:      true

Server: Docker Engine - Community
  Version:          20.10.2
  API version:      1.41 (minimum version 1.12)
  Go version:       go1.13.15
  Git commit:       8891c58
  Built:            Mon Dec 28 16:15:28 2020
  OS/Arch:          linux/amd64
  Experimental:     false
  Version:          1.4.3
  GitCommit:        269548fa27e0089a8b8278fc4fc781d7f65a939b
  Version:          1.0.0-rc92
  GitCommit:        ff819c7e9184c13b7c2607fe6c30ae19403a7aff
  Version:          0.19.0
  GitCommit:        de40ad0

Test docker is working by pulling the latest Alpine Linux docker image.

$ sudo docker pull alpine
Using default tag: latest
latest: Pulling from library/alpine
596ba82af5aa: Pull complete 
Digest: sha256:d9a7354e3845ea8466bb00b22224d9116b183e594527fb5b6c3d30bc01a20378
Status: Downloaded newer image for alpine:latest

List available images:

$ sudo docker images
alpine       latest    7731472c3f2a   11 days ago   5.61MB

Run container

$ sudo docker run -it --rm alpine sh
/ # cat /etc/os-release
NAME="Alpine Linux"
PRETTY_NAME="Alpine Linux v3.13"
/ # exit

We have installed and confirmed Docker CE to be working on MX Linux 19 system. Check more articles related to management of MX Linux.

Install KDE Desktop Environment on MX Linux

Install Opera Web Browser on MX Linux

How To Install Google Chrome on MX Linux

Previous articleUse Motrix to Download Files on Windows Faster
Next articleHow To Install Brave Browser on MX Linux 19


Please enter your comment!
Please enter your name here