fix documentation for docker_container publish_ports option (#56093) (#56099)

The documentation for the docker_container publish_ports options
erroneously stated that container ports must be "exposed" in order to
be "published".

(cherry picked from commit 5e74ecb4fd)
pull/56170/head
Felix Fontein 6 years ago committed by Alicia Cozine
parent 7705c9044d
commit 954462c24f

@ -294,7 +294,6 @@ options:
- List of ports to publish from the container to the host.
- "Use docker CLI syntax: C(8000), C(9000:8000), or C(0.0.0.0:9000:8000), where 8000 is a
container port, 9000 is a host port, and 0.0.0.0 is a host interface."
- Container ports must be exposed either in the Dockerfile or via the C(expose) option.
- A value of C(all) will publish all exposed container ports to random host ports, ignoring
any other mappings.
- If C(networks) parameter is provided, will inspect each network to see if there exists

Loading…
Cancel
Save