Last active
October 11, 2023 14:52
-
-
Save angristan/389ad925b61c663153e6f582f7ef370e to your computer and use it in GitHub Desktop.
Script to install Docker and Docker-Compose on Debian
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 | |
apt-get install apt-transport-https ca-certificates curl gnupg2 software-properties-common sudo | |
curl -fsSL https://download.docker.com/linux/$(. /etc/os-release; echo "$ID")/gpg | sudo apt-key add - | |
add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/$(. /etc/os-release; echo "$ID") $(lsb_release -cs) stable" | |
apt-get update | |
apt-get install docker-ce | |
curl -L https://github.com/docker/compose/releases/download/1.19.0/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose | |
chmod +x /usr/local/bin/docker-compose | |
docker-compose --version | |
curl -fsSL https://get.docker.com/ -o get-docker.sh | |
sh get-docker.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment