Last active
August 28, 2021 19:59
-
-
Save thijsvos/0b44ea65f70e457a64577ef9522c3553 to your computer and use it in GitHub Desktop.
Docker_install_script
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/bash/ | |
sudo apt-get remove docker docker.io containerd runc | |
sudo apt-get update -y | |
sudo apt-get install apt-transport-https ca-certificates curl gnupg lsb-release | |
sudo DEBIAN_FRONTEND=noninteractive curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg | |
echo \ | |
"deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.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 update -y | |
sudo apt-get install docker-ce docker-ce-cli containerd.io | |
sudo DEBIAN_FRONTEND=noninteractive docker version | |
# Usage: | |
# wget -O - https://gist.githubusercontent.com/thijsvos/0b44ea65f70e457a64577ef9522c3553/raw/6b35577f677c2c4e1897c6ce3e31eeb738ff9161/install.sh | bash |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment