Skip to content

Commit

Permalink
fix documentation for docker_container publish_ports option (ansible#…
Browse files Browse the repository at this point in the history
…56093)

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 5e74ecb)
  • Loading branch information
larsks authored and felixfontein committed May 5, 2019
1 parent a44b62a commit fc5b098
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/ansible/modules/cloud/docker/docker_container.py
Expand Up @@ -294,7 +294,6 @@
- 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
Expand Down

0 comments on commit fc5b098

Please sign in to comment.