Skip to content

Instantly share code, notes, and snippets.

@emmanuel
Created July 9, 2014 13:33
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save emmanuel/7f21eb0542224aae01a9 to your computer and use it in GitHub Desktop.
Save emmanuel/7f21eb0542224aae01a9 to your computer and use it in GitHub Desktop.
Clean & simple way to override Docker launch options in CoreOS
.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
@emmanuel
Copy link
Author

emmanuel commented Jul 9, 2014

Put docker.service in /etc/systemd/system/.

@JarenGlover
Copy link

@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?

@ELLIOTTCABLE
Copy link

👍 to @JarenGlover's comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment