-
Notifications
You must be signed in to change notification settings - Fork 25
[support] guardian inside docker cannot access docker-local DNS #18
Comments
Hi there! We use Pivotal Tracker to provide visibility into what our team is working on. A story for this issue has been automatically created. The current status is as follows:
This comment, as well as the labels on the issue, will be automatically updated as the status in Tracker changes. |
You could try tacking |
Thanks, this should be what I need on the concourse side to get things moving again. I am still having issues on the docker side; docker seems to redirect 127.0.0.11 to some mystery socket, and simply pointing --garden-dns-server to the host container's ip doesn't seem to work. Time to brush up on my networking skills... |
Any word on this @RoboPhred? I'm not sure there's much left to do on our end, now that you at least know the flag that you'd be setting. May close this soon. |
I have not had time to figure out how to get the docker dns to the worker, but with the flag I should have everything I need once I revisit this issue. Closing for now, will open a new issue if I hit any other snags. |
Hi! I'm currently facing this issue. In order to solve it i endup adding socat UDP4-RECVFROM:53,fork UDP4-SENDTO:127.0.0.11:53 & but i can't get the worker's Any ideas @vito ? |
Just to add more info, the use case is:
Thx! |
What ends up being in |
in Could you help me with understanding these rules?
Am i correct that packets from |
Yeah, come to think of it it's probably defaulting to rejecting traffic to the host's network. Try passing the |
hmmm still not able to resolve,
update: had other containers still around, updated with the correct table |
paging dr. @julz |
actually, inner worker is capable of accessing the worker as a request from the inner container to a python server in the worker has had the request served successfully; strange that dns lookups are still not working, maybe it has something to do with udp, need to check that |
Little update on this: got it working by explicitly binding to the desired interface in
Is there a way of doing that w/out Thx |
Any ideas on this? I'd really like to remove |
Consolidating this into cloudfoundry/guardian#42 - if you actually want Docker's DNS working it may be more productive to talk about it there, as it's primarily a question of how to configure Guardian in this way. I don't think it's possible to day. Thanks for the info and updates, though - sorry I couldn't be of more help. |
The default Linode DNS server fails to resolve FQDNs. The git check was failing to clone from Github because github.com could not be resolved. vmware-archive/bin#18 [#125480521]
Just for info, found this Gist helpful: https://gist.github.com/colthreepv/6b818cfcf296dc1b5c2cf15eb76a140e
|
Setting |
Garden containers cannot resolve DNS names when the worker is ran inside Docker via docker-compose, which supplies its own DNS server on a loopback address for resolving the names of other containers.
On the UI side, it simply says no versions are available, but logs are showing error 500 on check, and hijacking the check container shows that all DNS lookups are being routed to the docker container's (local?) DNS of 127.0.0.11, and failing with "connection refused".
Is there a way to manually supply the DNS server for garden?
Even better, is there a way to have garden use the host's network directly, so that it will have access to additional dns names managed by docker?
Additional details:
Problem occurs on both v1.3.0-rc.9 and v1.3.0-rc.35
Relevant bits of the pipeline
Hijacking the check container, it seems to be set up for docker-image. I manually sent a request to check "svn-resource":
More exploring shows that all dns resolution is aimed at 127.0.0.11, and failing. However, I can still ping by IP.
Connecting to the docker container, network access works just fine
Worker Dockerfile:
concourse-worker-exec
The text was updated successfully, but these errors were encountered: