Created
March 19, 2018 02:00
-
-
Save 328/f4f81567fc288e1dfaed12565304a9f8 to your computer and use it in GitHub Desktop.
docker cloud-init
This file contains hidden or 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
#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