Last active
February 12, 2024 08:42
-
-
Save knrt10/c344a1708984ae759e1ee25177148c95 to your computer and use it in GitHub Desktop.
Install docker in amd64 machines
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 | |
set -euo pipefail | |
set -x | |
# Source: https://docs.docker.com/engine/install/ubuntu/ | |
apt-get update | |
apt-get -y remove docker docker-engine docker.io containerd runc || true | |
apt-get install -y \ | |
apt-transport-https \ | |
ca-certificates \ | |
curl \ | |
gnupg-agent \ | |
software-properties-common \ | |
byobu | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add - | |
add-apt-repository \ | |
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \ | |
$(lsb_release -cs) \ | |
stable" | |
apt-get update | |
apt-get install -y docker-ce docker-ce-cli containerd.io docker-compose | |
groupadd docker | |
usermod -aG docker $USER | |
newgrp docker |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment