summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2018-11-20 08:53:21 -0800
committerGitHub <noreply@github.com>2018-11-20 08:53:21 -0800
commitfe4f09493f41f675d24c969d1b60d1a6a45ddb9e (patch)
tree723bc55fce645c86c9ecaf8aa1eadde46333af2c /docs
parent21a76077d36a7d2a79bf4e18b6d3afcb717b102a (diff)
parent690c52a113124efcedccb84e44198e7602f064ec (diff)
downloadpodman-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.md9
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.