mirror of
https://github.com/containers/podman.git
synced 2025-08-06 03:19:52 +08:00
Fix all ports exposed by kube play
Container ports defined with containerPort were exposed by default even though kubernetes interprets them as mostly informative. Closes #17028 Signed-off-by: Peter Werner <wpw.peter@gmail.com>
This commit is contained in:
@ -221,6 +221,16 @@ Define or override a port definition in the YAML file.
|
||||
The lists of ports in the YAML file and the command line are merged. Matching is done by using the **containerPort** field.
|
||||
If **containerPort** exists in both the YAML file and the option, the latter takes precedence.
|
||||
|
||||
#### **--publish-all**
|
||||
|
||||
Setting this option to `true` will expose all ports to the host,
|
||||
even if only specified via **containerPort** in the K8 YAML.
|
||||
In terms of which port will be exposed, **--publish** has higher priority than **hostPort**, has higher priority than
|
||||
**containerPort**.
|
||||
|
||||
If set to `false` (which is the default), only ports defined via **hostPort**
|
||||
or **--publish** are published on the host.
|
||||
|
||||
#### **--quiet**, **-q**
|
||||
|
||||
Suppress output information when pulling images
|
||||
|
Reference in New Issue
Block a user