Skip to content

Instantly share code, notes, and snippets.

@maikyguanaes
Last active February 17, 2017 02:21
Show Gist options
  • Save maikyguanaes/843e18b94c83877f3bc268535b0c1e10 to your computer and use it in GitHub Desktop.
Save maikyguanaes/843e18b94c83877f3bc268535b0c1e10 to your computer and use it in GitHub Desktop.
#!/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