Skip to content

Commit

Permalink
docs: add note about docker DNS config when using bridge mode (#12229) (
Browse files Browse the repository at this point in the history
#12238)

The Docker DNS configuration options are not compatible with a
group-level network in `bridge` mode. Warn users about this in the
Docker task configuration docs.
  • Loading branch information
hc-github-team-nomad-core authored Mar 8, 2022
1 parent d0c6eee commit ab9f851
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions website/content/docs/drivers/docker.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -98,13 +98,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

0 comments on commit ab9f851

Please sign in to comment.