Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backport of docs: add note about docker DNS config when using bridge mode into release-1.1.12 #12240

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 17 additions & 8 deletions website/content/docs/drivers/docker.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -100,13 +100,21 @@ config {
}
```

- `dns_search_domains` - (Optional) A list of DNS search domains for the container
to use.

- `dns_options` - (Optional) A list of DNS options for the container to use.

- `dns_servers` - (Optional) A list of DNS servers for the container to use
(e.g. ["8.8.8.8", "8.8.4.4"]). Requires Docker v1.10 or greater.
- `dns_search_domains` - (Optional) A list of DNS search domains for
the container to use. If you are using bridge networking mode with a
`network` block in the task group, you must set all DNS options in
the `network.dns` block instead.

- `dns_options` - (Optional) A list of DNS options for the container
to use. If you are using bridge networking mode with a `network`
block in the task group, you must set all DNS options in the
`network.dns` block instead.

- `dns_servers` - (Optional) A list of DNS servers for the container
to use (e.g. ["8.8.8.8", "8.8.4.4"]). Requires Docker v1.10 or
greater. If you are using bridge networking mode with a `network`
block in the task group, you must set all DNS options in the
`network.dns` block instead.

- `entrypoint` - (Optional) A string list overriding the image's entrypoint.

Expand Down Expand Up @@ -245,7 +253,8 @@ config {
the group `network.mode = "bridge"` you should not set the Docker config
`network_mode`, or the container will be unable to reach other containers in
the task group. This will also prevent [Connect]-enabled tasks from reaching
the Envoy sidecar proxy.
the Envoy sidecar proxy. You must also set any DNS options in the `network.dns`
block and not in the task configuration.

- `pid_mode` - (Optional) `host` or not set (default). Set to `host` to share
the PID namespace with the host. Note that this also requires the Nomad agent
Expand Down