Created
July 9, 2014 13:33
-
-
Save emmanuel/7f21eb0542224aae01a9 to your computer and use it in GitHub Desktop.
Clean & simple way to override Docker launch options in CoreOS
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
.include /usr/lib/systemd/system/docker.service | |
[Service] | |
ExecStart= | |
ExecStart=/usr/bin/docker -d -s=btrfs -r=false -H fd:// --dns=172.17.42.1 --dns-search=cluster.local |
Put docker.service
in /etc/systemd/system/
.
@emmanuel - few questions:
- I take it when you source another unit file and add a [Service] block this override that section ..
- should i provide the same Docker parameters that CoreOS provide - to get it to perform like "normal"
- I should ExecStart to the path of the new binary right?
- Have you tested on the recent stable version to confirm if this still works?
👍 to @JarenGlover's comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks to http://goldmann.pl/blog/2014/01/21/connecting-docker-containers-on-multiple-hosts/#_docker