Skip to content

Instantly share code, notes, and snippets.

@Hotfirenet
Last active February 20, 2017 05:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Hotfirenet/ef367acf97227144fd880f30afdf447f to your computer and use it in GitHub Desktop.
Save Hotfirenet/ef367acf97227144fd880f30afdf447f to your computer and use it in GitHub Desktop.
Script d'automatisation pour l'installation de docker
#!/usr/bin/env bash
#Automation script By Hotfirenet for debian
#NEED ROOT, CURL
#Use curl -sSL https://gist.githubusercontent.com/Hotfirenet/ef367acf97227144fd880f30afdf447f/raw/89539ec5a91902d7591cd86f449c20d570fa79dc/docker_install.sh | bash
#install docker engine
#https://docs.docker.com/engine/installation/linux/debian/
apt-get install -y --no-install-recommends \
apt-transport-https \
ca-certificates \
curl \
software-properties-common
curl -fsSL https://apt.dockerproject.org/gpg | apt-key add -
add-apt-repository \
"deb https://apt.dockerproject.org/repo/ \
debian-$(lsb_release -cs) \
main"
apt-get update
apt-get -y install docker-engine
#install docker compose
#https://docs.docker.com/compose/install/
curl -L "https://github.com/docker/compose/releases/download/1.11.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment