Created
January 2, 2017 18:55
-
-
Save carlosonunez/8bf880c1f381368c7409eae1825a74e2 to your computer and use it in GitHub Desktop.
This file contains 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
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