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 |
Docker:
Client:
Version: 1.12.1
API version: 1.24
Go version: go1.6.3
Git commit: 23cf638
Built: Thu Aug 18 05:33:38 2016
OS/Arch: linux/amd64
Server:
Version: 1.12.1
API version: 1.24
Go version: go1.6.3
Git commit: 23cf638
Built: Thu Aug 18 05:33:38 2016
OS/Arch: linux/amd64
Container:
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.04
DISTRIB_CODENAME=xenial
DISTRIB_DESCRIPTION="Ubuntu 16.04.1 LTS"
With dnsutils
installed.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Not working:
Working: