add comment: ports need to be exposed.
port mapping with this module only works for ports that are exposed either in the Dockerfile or via an additional arguments. This is different from the command line docker client, that is willing to also map ports that are not exposed. This comments makes the behaviour more obvious.
This commit is contained in:
parent
8ff71a3fa8
commit
abc89f0df5
1 changed files with 2 additions and 1 deletions
|
@ -62,7 +62,8 @@ options:
|
||||||
- List containing private to public port mapping specification. Use docker
|
- List containing private to public port mapping specification. Use docker
|
||||||
- 'CLI-style syntax: C(8000), C(9000:8000), or C(0.0.0.0:9000:8000)'
|
- 'CLI-style 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
|
- where 8000 is a container port, 9000 is a host port, and 0.0.0.0 is
|
||||||
- a host interface.
|
- a host interface. The container ports need to be exposed either in the
|
||||||
|
- Dockerfile or via the next option.
|
||||||
default: null
|
default: null
|
||||||
version_added: "1.5"
|
version_added: "1.5"
|
||||||
expose:
|
expose:
|
||||||
|
|
Loading…
Reference in a new issue