Skip to content

Commit 123bdeb

Browse files
committed
Fix: add doc of DNS fallback
1 parent f2ffd89 commit 123bdeb

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

content/manuals/engine/network/_index.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,11 @@ You can configure DNS resolution on a per-container basis, using flags for the
190190
The following table describes the available `docker run` flags related to DNS
191191
configuration.
192192

193+
> [!NOTE]
194+
>
195+
> In case no non-localhost DNS is defined in the `/etc/resolve.conf`,
196+
> Docker Engine automatically adds a fallback DNS configuration using public Google DNS servers (8.8.8.8 and 8.8.4.4).
197+
193198
| Flag | Description |
194199
| -------------- |-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
195200
| `--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. |

0 commit comments

Comments
 (0)