mirror of
https://github.com/ansible-collections/community.docker.git
synced 2026-04-03 10:14:13 +00:00
Document host-gateway. (#897)
This commit is contained in:
parent
ace4ee4f70
commit
36dcb94b39
@ -340,6 +340,9 @@ options:
|
|||||||
description:
|
description:
|
||||||
- Dict of host-to-IP mappings, where each host name is a key in the dictionary.
|
- Dict of host-to-IP mappings, where each host name is a key in the dictionary.
|
||||||
Each host name will be added to the container's C(/etc/hosts) file.
|
Each host name will be added to the container's C(/etc/hosts) file.
|
||||||
|
- Instead of an IP address, the special value V(host-gateway) can also be used, which
|
||||||
|
resolves to the host's gateway IP and allows containers to connect to services running
|
||||||
|
on the host.
|
||||||
type: dict
|
type: dict
|
||||||
exposed_ports:
|
exposed_ports:
|
||||||
description:
|
description:
|
||||||
|
|||||||
@ -100,6 +100,9 @@ options:
|
|||||||
etc_hosts:
|
etc_hosts:
|
||||||
description:
|
description:
|
||||||
- Extra hosts to add to C(/etc/hosts) in building containers, as a mapping of hostname to IP address.
|
- Extra hosts to add to C(/etc/hosts) in building containers, as a mapping of hostname to IP address.
|
||||||
|
- Instead of an IP address, the special value V(host-gateway) can also be used, which
|
||||||
|
resolves to the host's gateway IP and allows building containers to connect to services running
|
||||||
|
on the host.
|
||||||
type: dict
|
type: dict
|
||||||
args:
|
args:
|
||||||
description:
|
description:
|
||||||
|
|||||||
@ -79,6 +79,9 @@ options:
|
|||||||
etc_hosts:
|
etc_hosts:
|
||||||
description:
|
description:
|
||||||
- Extra hosts to add to C(/etc/hosts) in building containers, as a mapping of hostname to IP address.
|
- Extra hosts to add to C(/etc/hosts) in building containers, as a mapping of hostname to IP address.
|
||||||
|
- Instead of an IP address, the special value V(host-gateway) can also be used, which
|
||||||
|
resolves to the host's gateway IP and allows building containers to connect to services running
|
||||||
|
on the host.
|
||||||
type: dict
|
type: dict
|
||||||
args:
|
args:
|
||||||
description:
|
description:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user