Skip to content

Instantly share code, notes, and snippets.

@uGeek
Forked from angristan/install_docker.sh
Created May 5, 2018 19:09
Show Gist options
  • Save uGeek/4604426b15803f3734ae2675dcf941af to your computer and use it in GitHub Desktop.
Save uGeek/4604426b15803f3734ae2675dcf941af 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