-
-
Save VladimirCores/bb75d0d46bf4a4ea02a2f0d6075aaf4f to your computer and use it in GitHub Desktop.
Install Docker-CE script for Deepin Linux
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
sudo chmod 666 /var/run/docker.sock
systemctl restart docker