Created
June 22, 2022 14:57
-
-
Save fcschmidt/341f00ceb870619496bd09e2ecb282b9 to your computer and use it in GitHub Desktop.
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
#!/usr/bin/env bash | |
# https://docs.docker.com/install/linux/docker-ce/ubuntu/ | |
# Install Docker | |
apt-get install apt-transport-https ca-certificates curl gnupg-agent software-properties-common | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
# add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | |
add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu disco stable" | |
apt-get update | |
apt-get install docker-ce docker-ce-cli containerd.io docker-compose | |
apt-cache policy docker-ce | |
systemctl status docker | |
usermod -aG docker $(whoami) | |
chown -R fcs:fcs /usr/local/bin/docker-compose | |
# Install Docker compose | |
curl -L "https://github.com/docker/compose/releases/download/1.24.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose | |
# Update | |
apt update | |
# Version | |
docker --version | |
docker-compose --version |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment