Created
April 28, 2023 20:31
-
-
Save benoitpetit/ab736282dc5fc9ae9dd1dec16a997dd7 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
#!/bin/bash | |
# change version https://github.com/docker/compose/releases/download/[version] | |
sudo apt update && sudo apt upgrade -y | |
sudo apt install apt-transport-https ca-certificates curl software-properties-common -y | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu focal stable" -y | |
sudo apt update | |
sudo apt install docker-ce -y | |
sudo curl -L "https://github.com/docker/compose/releases/download/v2.17.3/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose | |
sudo chmod +x /usr/local/bin/docker-compose | |
sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose | |
sudo apt autoremove -y | |
echo "" | |
echo "-----------------------" | |
echo "docker installed. bye!" | |
echo "-----------------------" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment