Skip to content

Instantly share code, notes, and snippets.

@carlosonunez
Created January 2, 2017 18:55
Show Gist options
  • Save carlosonunez/8bf880c1f381368c7409eae1825a74e2 to your computer and use it in GitHub Desktop.
Save carlosonunez/8bf880c1f381368c7409eae1825a74e2 to your computer and use it in GitHub Desktop.
1. Create an etcd token; store it in Vault or some other secure location
2. Create file /etc/systemd/system/docker.service.d/custom.conf with contents:
[Service]
Environment="DOCKER_OPTS=-H=0.0.0.0:2376 -H unix:///var/run/docker.sock --cluster-advertise eth1:2376 --cluster-store etcd://127.0.0.1:2379"
This needs to be done in cloud-init since CoreOS is super bare-bones and "doesn't" contain support for config mgmt out of the box.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment