diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2018-11-20 08:53:21 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-20 08:53:21 -0800 |
commit | fe4f09493f41f675d24c969d1b60d1a6a45ddb9e (patch) | |
tree | 723bc55fce645c86c9ecaf8aa1eadde46333af2c /docs | |
parent | 21a76077d36a7d2a79bf4e18b6d3afcb717b102a (diff) | |
parent | 690c52a113124efcedccb84e44198e7602f064ec (diff) | |
download | podman-fe4f09493f41f675d24c969d1b60d1a6a45ddb9e.tar.gz podman-fe4f09493f41f675d24c969d1b60d1a6a45ddb9e.tar.bz2 podman-fe4f09493f41f675d24c969d1b60d1a6a45ddb9e.zip |
Merge pull request #1829 from baude/enableportbindinginpods
Allow users to expose ports from the pod to the host
Diffstat (limited to 'docs')
-rw-r--r-- | docs/podman-pod-create.1.md | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/docs/podman-pod-create.1.md b/docs/podman-pod-create.1.md index 673ad9a8c..a63b12d73 100644 --- a/docs/podman-pod-create.1.md +++ b/docs/podman-pod-create.1.md @@ -51,6 +51,15 @@ Assign a name to the pod Write the pod ID to the file +**-p**, **--publish**=[] + +Publish a port or range of ports from the pod to the host + +Format: `ip:hostPort:containerPort | ip::containerPort | hostPort:containerPort | containerPort` +Both hostPort and containerPort can be specified as a range of ports. +When specifying ranges for both, the number of container ports in the range must match the number of host ports in the range. +Use `podman port` to see the actual mapping: `podman port CONTAINER $CONTAINERPORT` + **--share**="" A comma deliminated list of kernel namespaces to share. If none or "" is specified, no namespaces will be shared. The namespaces to choose from are ipc, net, pid, user, uts. |