moby: lxc-docker startup script fails to set up iptables MASQ rule; WAS: dns issues while using docker run -dns
I need to use -dns
args when running docker run
, and that was working fine last week. Today, however, it’s unable to resolve any requests.
andyh@gir:~$ docker run -dns 8.8.8.8 -dns 8.8.4.4 base ping -c 5 google.com
ping: unknown host google.com
andyh@gir:~$ docker version
Client version: 0.4.0
Server version: 0.4.0
Go version: go1.0.3
andyh@gir:~$ cat /etc/resolv.conf
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 127.0.1.1
andyh@gir:~$
I’ll dig in with dig to get more details. Any other suggestions for debugging these dns issues?
About this issue
- Original URL
- State: closed
- Created 11 years ago
- Comments: 40 (15 by maintainers)
Commits related to this issue
- backport: libnetwork #771 and #866 Signed-off-by: Antonio Murdaca <runcom@redhat.com> — committed to runcom/docker by runcom 8 years ago
- Merge pull request #64 from runcom/backport-libnetwork backport: libnetwork #771 and #866 — committed to projectatomic/docker by rhatdan 8 years ago
@ml10 can you try to reset everything?
It will force docker to recreate the bridge and reinit all the network rules
I just bumped into this issue with Docker 17.09:
My system:
The solution proposed by @creack does not not function since there is no
-d
flag in this docker version.