Created
January 28, 2021 02:20
-
-
Save sbusso/ac37351bccb143664b686c82d890b9be to your computer and use it in GitHub Desktop.
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
# Install some required packages first | |
sudo apt update | |
sudo apt install -y \ | |
apt-transport-https \ | |
ca-certificates \ | |
curl \ | |
gnupg2 \ | |
software-properties-common | |
# Get the Docker signing key for packages | |
curl -fsSL https://download.docker.com/linux/$(. /etc/os-release; echo "$ID")/gpg | sudo apt-key add - | |
# Add the Docker official repos | |
echo "deb [arch=$(dpkg --print-architecture)] https://download.docker.com/linux/$(. /etc/os-release; echo "$ID") \ | |
$(lsb_release -cs) stable" | \ | |
sudo tee /etc/apt/sources.list.d/docker.list | |
# Install Docker | |
sudo apt update | |
sudo apt install -y --no-install-recommends \ | |
docker-ce \ | |
cgroupfs-mount | |
sudo systemctl enable docker | |
sudo systemctl start docker |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
curl -s https://gist.githubusercontent.com/sbusso/ac37351bccb143664b686c82d890b9be/raw/8b3421c2dc3d89f720fa60ead24629b537e22fdf/docker_rpi.sh | sudo bash