Skip to content

Instantly share code, notes, and snippets.

@ehazlett
Created November 25, 2014 14:21
Show Gist options
  • Save ehazlett/88d1a3025ed92453c073 to your computer and use it in GitHub Desktop.
Save ehazlett/88d1a3025ed92453c073 to your computer and use it in GitHub Desktop.
EC2 Docker Host Launch Data
#!/bin/bash
apt-get update
apt-get install -y curl
curl get.docker.io | sh -
# uncomment if you want remote api access
#echo 'DOCKER_OPTS="-H tcp://0.0.0.0:2375 -H unix:///var/run/docker.sock"' >> /etc/default/docker
service docker restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment