Last active
December 14, 2022 08:13
-
-
Save escalopa/a21b2f79016ffea7825b14fd43f4d60c to your computer and use it in GitHub Desktop.
Install docker linux
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
# | |
# To run this script on your machine use | |
# curl https://gist.githubusercontent.com/escalopa/a21b2f79016ffea7825b14fd43f4d60c/raw/aeffa969a2e98b3f8f85727b2783fa2cafc76004/docker-ubuntu.sh | bash | |
# | |
set -e | |
sudo apt update -y | |
sudo apt install -y \ | |
ca-certificates \ | |
curl \ | |
gnupg \ | |
lsb-release | |
sudo mkdir -p /etc/apt/keyrings | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg | |
echo \ | |
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \ | |
$(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null | |
sudo apt-get install -y docker-ce docker-ce-cli containerd.io docker-compose-plugin | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment