Skip to content

Instantly share code, notes, and snippets.

@328
Created March 19, 2018 02:00
Show Gist options
  • Save 328/f4f81567fc288e1dfaed12565304a9f8 to your computer and use it in GitHub Desktop.
Save 328/f4f81567fc288e1dfaed12565304a9f8 to your computer and use it in GitHub Desktop.
docker cloud-init
#cloud-config
repo_update: true
repo_upgrade: all
packages:
- docker
runcmd:
- systemctl start docker
- systemctl enable docker
- [sh, -c, 'curl -L https://github.com/docker/compose/releases/download/$(curl -s https://api.github.com/repos/docker/compose/releases/latest | grep "tag_name" | cut -d \" -f4)/docker-compose-$(uname -s)-$(uname -m) > /usr/local/bin/docker-compose']
- [sh, -c, "chmod +x /usr/local/bin/docker-compose"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment