Skip to content

Instantly share code, notes, and snippets.

@angristan
Last active October 11, 2023 14:52
Show Gist options
  • Save angristan/389ad925b61c663153e6f582f7ef370e to your computer and use it in GitHub Desktop.
Save angristan/389ad925b61c663153e6f582f7ef370e to your computer and use it in GitHub Desktop.
Script to install Docker and Docker-Compose on Debian
#!/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