Skip to content

Instantly share code, notes, and snippets.

@jacobtomlinson
Last active November 22, 2017 21:23
Show Gist options
  • Save jacobtomlinson/989c12f9d23c93706525 to your computer and use it in GitHub Desktop.
Save jacobtomlinson/989c12f9d23c93706525 to your computer and use it in GitHub Desktop.
Docker toolbox for linux
#!/bin/bash
# A quick script to install Docker Engine and Compose
# Run with sudo
# Install Docker Engine
curl -sSL https://get.docker.com/ | sh
# Start Docker
# TODO update to handle multiple distros
service docker start
# Install Docker Compose
curl -L https://github.com/docker/compose/releases/download/1.6.0/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
usermod -aG docker $(who am i | awk '{print $1}')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment