Last active
February 17, 2017 02:21
-
-
Save maikyguanaes/843e18b94c83877f3bc268535b0c1e10 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 | |
# Install the latest version Docker | |
sudo curl -fsSL https://get.docker.com/ | sh | |
# Check if docker is started | |
sudo docker --version | |
# Check if docker is started | |
sudo /etc/init.d/docker status | |
# If console returns docker stop/waitind | |
sudo /etc/init.d/docker start | |
# Add your user to the docker group | |
sudo usermod -aG docker $USER | |
# Install the latest version Docker Compose | |
sudo curl -L "https://github.com/docker/compose/releases/download/1.10.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose | |
sudo chmod +x /usr/local/bin/docker-compose | |
# Install the latest version Docker Machine | |
curl -L https://github.com/docker/machine/releases/download/v0.9.0/docker-machine-`uname -s`-`uname -m` >/tmp/docker-machine && | |
chmod +x /tmp/docker-machine && | |
sudo cp /tmp/docker-machine /usr/local/bin/docker-machine |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment