Skip to content

Instantly share code, notes, and snippets.

@stardigits
Last active October 18, 2024 00:23
Show Gist options
  • Save stardigits/244ddfc342a7ca5fe436a51fbcced8e9 to your computer and use it in GitHub Desktop.
Save stardigits/244ddfc342a7ca5fe436a51fbcced8e9 to your computer and use it in GitHub Desktop.
Installing Docker in MX Linux 21.3

How to

Source

https://mxlinux.org/wiki/applications/docker/

Step

Dowload & run below CLI

wget -O - https://gist.githubusercontent.com/stardigits/244ddfc342a7ca5fe436a51fbcced8e9/raw/b36335884350f846655013e73b3512bf01b30105/install-docker.sh | bash
wget -O docker.gpg https://download.docker.com/linux/debian/gpg
gpg --keyid-format 0xlong docker.gpg 2>/dev/null
gpg --keyid-format 0xlong docker.gpg 2>/dev/null | grep -sq 0x8D81803C0EBFCD88 && sudo apt-key add docker.gpg
# For MX 21:
CODENAME=bullseye
# For MX 19 :
#CODENAME=buster
# For MX 18 :
#CODENAME=stretch
echo "deb [arch=amd64] https://download.docker.com/linux/debian $CODENAME stable" | sudo tee /etc/apt/sources.list.d/docker.list
sudo apt update
sudo apt install docker-ce -y
sudo apt install apparmor -y
sudo service docker restart
@Veronicapdi
Copy link

Thanks

@jonholdsworth
Copy link

docker: unrecognized service

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment