weaveworks-experiments / docker-plugin

Deprecated, part of Weave Net now
https://github.com/weaveworks/weave
Apache License 2.0
33 stars 9 forks source link

Use the weave IP given to weaveDNS as the nameserver #17

Closed squaremo closed 9 years ago

squaremo commented 9 years ago

Since we cannot rely on containers having a docker bridge interface, we cannot supply the docker bridge IP as a nameserver for containers.

Instead, we supply weaveDNS's weave IP address as the nameserver, and make sure it's routable from the container; and, that the container IPs are routable from the weaveDNS container.

This needs a couple of things to line up:

NB We don't actually get to supply the /etc/resolv.conf to the container, so it is still necessary to include a --dns=... argument when starting a container.