Last active
August 25, 2016 11:50
-
-
Save speier/16b4ca2e0185a6a841571434c720499c 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
# /etc/systemd/system/docker.service.d/10-base.conf | |
[Service] | |
ExecStart= | |
ExecStart=/usr/bin/docker daemon \ | |
-H fd:// \ | |
-H tcp://0.0.0.0:2376 \ | |
-H unix:///var/run/docker.sock \ | |
--dns-search=service.consul \ | |
--dns=10.135.27.153 |
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
# /etc/resolv.conf (host) | |
search service.consul | |
nameserver 127.0.0.1 |
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
# /etc/resolv.conf (container) | |
search service.consul | |
nameserver 127.0.0.11 | |
options ndots:0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Docker:
Container:
With
dnsutils
installed.