Created
November 17, 2017 23:25
-
-
Save jansanchez/a67760e9d85846efdf07ed295fea5691 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 | |
# | |
sudo apt-get -y remove docker docker-engine docker.io | |
# | |
sudo apt-get update | |
# | |
sudo apt-get install -y apt-transport-https ca-certificates wget software-properties-common | |
# | |
wget https://download.docker.com/linux/debian/gpg | |
# | |
sudo apt-key add gpg | |
# | |
echo "deb [arch=amd64] https://download.docker.com/linux/debian $(lsb_release -cs) stable" | sudo tee -a /etc/apt/sources.list.d/docker.list | |
# | |
sudo apt-get update | |
# | |
sudo apt-cache policy docker-ce | |
# | |
sudo apt-get install -y docker-ce | |
# | |
sudo systemctl status docker | |
# | |
sudo usermod -aG docker $(whoami) | |
# Docker Compose | |
sudo curl -o /usr/local/bin/docker-compose -L "https://github.com/docker/compose/releases/download/1.17.1/docker-compose-$(uname -s)-$(uname -m)" | |
# | |
sudo chmod +x /usr/local/bin/docker-compose | |
# | |
docker-compose -v |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment