Last active
January 4, 2021 03:49
-
-
Save m-tmatma/7335f78f8c090ff0dcb3df34b1d26e2e to your computer and use it in GitHub Desktop.
install docker ubuntu
This file contains 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 | |
sudo true | |
sudo apt-get update | |
sudo apt-get install -y \ | |
apt-transport-https \ | |
ca-certificates \ | |
curl \ | |
gnupg-agent | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | gpg --dearmor | sudo tee /usr/share/keyrings/docker-ce-archive-keyring.gpg > /dev/null | |
echo \ | |
"deb [arch=amd64 signed-by=/usr/share/keyrings/docker-ce-archive-keyring.gpg] https://download.docker.com/linux/ubuntu \ | |
$(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker-ce.list > /dev/null | |
sudo apt-get update | |
sudo apt-get install -y docker-ce docker-ce-cli containerd.io docker-compose | |
sudo usermod -a -G docker $USER | |
sudo systemctl start docker | |
sudo systemctl enable docker | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment