docker_container: add driver_opts and gw_priority (#1143)

closes #1142
This commit is contained in:
salty
2025-10-07 18:26:25 +02:00
committed by GitHub
parent d0f4ef57a4
commit ebb8569b5f
4 changed files with 49 additions and 0 deletions
+15
View File
@@ -751,6 +751,21 @@ options:
Daemon at least in some cases. When passed on creation, this seems to work better.
type: str
version_added: 3.6.0
driver_opts:
description:
- Dictionary of driver options for this network endpoint.
- Allows setting endpoint-specific driver options like C(com.docker.network.endpoint.ifname) to set a custom network interface name.
- Requires Docker API version 1.32 or newer.
type: dict
version_added: 5.0.0
gw_priority:
description:
- Gateway priority for this network endpoint.
- When a container is connected to multiple networks, this controls which network's gateway is used as the default gateway.
- Higher values indicate higher priority.
- Requires Docker API version 1.48 or newer.
type: int
version_added: 5.0.0
networks_cli_compatible:
description:
- If O(networks_cli_compatible=true) (default), this module will behave as C(docker run --network) and will B(not) add