diff --git a/.changelog/11173.txt b/.changelog/11173.txt new file mode 100644 index 000000000000..b50ff39f86a3 --- /dev/null +++ b/.changelog/11173.txt @@ -0,0 +1,3 @@ +```release-note:improvement +client: Allow Docker hostnames to be configured and interpolated in bridged networking mode +``` diff --git a/website/content/docs/job-specification/network.mdx b/website/content/docs/job-specification/network.mdx index 60cdd8800595..6936f97368c4 100644 --- a/website/content/docs/job-specification/network.mdx +++ b/website/content/docs/job-specification/network.mdx @@ -68,6 +68,11 @@ job "docs" { - `cni/` - Task group will have an isolated network namespace with the network configured by CNI. +- `hostname` `(string: "")` - The hostname assigned to the network namespace. This + is currently only supported using the [Docker driver][docker-driver] and when the + [mode](#mode) is set to [`bridge`](#bridge). This parameter supports + [interpolation](/docs/runtime/interpolation). + - `dns` ([DNSConfig](#dns-parameters): nil) - Sets the DNS configuration for the allocations. By default all DNS configuration is inherited from the client host. DNS configuration is only supported on Linux clients at this time.