Skip to content

Instantly share code, notes, and snippets.

@stephencoe
Last active February 18, 2017 10:44
Show Gist options
  • Save stephencoe/83597c7391ee503a43ae346312a5d54e to your computer and use it in GitHub Desktop.
Save stephencoe/83597c7391ee503a43ae346312a5d54e to your computer and use it in GitHub Desktop.
Install docker-compose on CoreOS
#cloud-config
# Uses the docker-compose alpine image
# https://docs.docker.com/compose/install/#/install-as-a-container
coreos:
units:
- name: install-docker-compose.service
command: start
content: |
[Unit]
Description=Install docker-compose
[Service]
Type=oneshot
ExecStart=/usr/bin/mkdir -p /opt/bin/
ExecStart=/usr/bin/curl -o /opt/bin/docker-compose -sL https://github.com/docker/compose/releases/download/1.11.1/run.sh
ExecStart=/usr/bin/chmod +x /opt/bin/docker-compose
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment