From 123bdebf85b18adadad22ae0f118043bff5abe48 Mon Sep 17 00:00:00 2001 From: junstory Date: Thu, 13 Nov 2025 14:42:56 +0900 Subject: [PATCH] Fix: add doc of DNS fallback --- content/manuals/engine/network/_index.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/content/manuals/engine/network/_index.md b/content/manuals/engine/network/_index.md index 1f24cc14ea0d..4451a24337c3 100644 --- a/content/manuals/engine/network/_index.md +++ b/content/manuals/engine/network/_index.md @@ -190,6 +190,11 @@ You can configure DNS resolution on a per-container basis, using flags for the The following table describes the available `docker run` flags related to DNS configuration. +> [!NOTE] +> +> In case no non-localhost DNS is defined in the `/etc/resolve.conf`, +> Docker Engine automatically adds a fallback DNS configuration using public Google DNS servers (8.8.8.8 and 8.8.4.4). + | Flag | Description | | -------------- |-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | `--dns` | The IP address of a DNS server. To specify multiple DNS servers, use multiple `--dns` flags. DNS requests will be forwarded from the container's network namespace so, for example, `--dns=127.0.0.1` refers to the container's own loopback address. |