You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Removed wrong information about container DNS (#11012)
* Removed wrong information about container DNS
In the docs it says a container will inherit the host /etc/hosts file along with /etc/resolv.conf. While the latter part is correct, /etc/hosts will not actually be inherited, as reported moby/moby#39311.
An additional line of text has been added to emphasize the fact that /etc/hosts are not inherited
* Removed extra hash on the run command redirect
* Update config/containers/container-networking.md
Co-authored-by: Sebastiaan van Stijn <thaJeztah@users.noreply.github.com>
Co-authored-by: Sebastiaan van Stijn <thaJeztah@users.noreply.github.com>
use Docker's embedded DNS server, which forwards external DNS lookups to the DNS
64
+
servers configured on the host.
65
+
66
+
Custom hosts defined in `/etc/hosts` are not inherited. To pass additional hosts
67
+
into your container, refer to [add entries to container hosts file](../../engine/reference/commandline/run.md#add-entries-to-container-hosts-file---add-host)
68
+
in the `docker run` reference documentation. You can override these settings on
0 commit comments