Skip to content

Instantly share code, notes, and snippets.

@wlad
Forked from madkoding/install-docker-deepin.sh
Last active January 18, 2021 15:18
Show Gist options
  • Save wlad/a13f26d30af792d79e16be1f9ef19625 to your computer and use it in GitHub Desktop.
Save wlad/a13f26d30af792d79e16be1f9ef19625 to your computer and use it in GitHub Desktop.
Install Docker-CE script for Deepin 20.1 Linux
#!/bin/sh
# Shell script to add docker-ce to Deepin Linux repositories
# Remove old docker
sudo apt-get remove -y docker docker-engine docker.io containerd runc
# Install dependencies
sudo apt-get install -y apt-transport-https ca-certificates curl gnupg2 software-properties-common
# Add GPG and fingerprint
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -
sudo apt-key fingerprint 0EBFCD88
# Add debian repository in deepin sources list
printf 'deb [arch=amd64] https://download.docker.com/linux/debian buster stable\n' \
| sudo tee /etc/apt/sources.list.d/docker-ce.list
# Update packages and install
sudo apt-get update -y
sudo apt-get install -y docker-ce
# Add current user to the docker users group (OPTIONAL)
sudo usermod -aG docker $(whoami)
@wlad
Copy link
Author

wlad commented Jan 18, 2021

see also --> https://docs.docker.com/engine/install/debian/

Deepin 20.1 is based on Debian 10 (codename buster)

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