Skip to content

Instantly share code, notes, and snippets.

@juliocv
Forked from madkoding/install-docker-deepin.sh
Last active February 26, 2020 00:53
Show Gist options
  • Select an option

  • Save juliocv/e21de4172100b1ef26de7065e2786203 to your computer and use it in GitHub Desktop.

Select an option

Save juliocv/e21de4172100b1ef26de7065e2786203 to your computer and use it in GitHub Desktop.
Install Docker-CE script for Deepin Linux
#!/bin/sh
# Shell script to add docker-ce to Deepin Linux repositories
# From docker pages https://docs.docker.com/install/linux/docker-ce/debian/
# 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 stretch 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)
@juliocv
Copy link
Copy Markdown
Author

juliocv commented Feb 20, 2020

Now with the option to add the current user to the docker users group at the end of the process.

@madkoding
Copy link
Copy Markdown

oh i'll add the option :)

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