aboutsummaryrefslogtreecommitdiff
path: root/docs/source/markdown/options/publish-all.md
diff options
context:
space:
mode:
authorEd Santiago <santiago@redhat.com>2022-09-12 15:39:34 -0600
committerEd Santiago <santiago@redhat.com>2022-09-13 07:51:39 -0600
commitdacd5942470b574608594ab034695cc3ead880b9 (patch)
tree77533186ddb0631abb06230a53f94f26e8d4b2de /docs/source/markdown/options/publish-all.md
parent07c0dd1f24b112c0161f61cafdfc1ab0866ebb9e (diff)
downloadpodman-dacd5942470b574608594ab034695cc3ead880b9.tar.gz
podman-dacd5942470b574608594ab034695cc3ead880b9.tar.bz2
podman-dacd5942470b574608594ab034695cc3ead880b9.zip
Man pages: refactor common options: --publish-all
Only shared between podman-create and run. The latter was updated in #5192, and that is the text I chose. Signed-off-by: Ed Santiago <santiago@redhat.com>
Diffstat (limited to 'docs/source/markdown/options/publish-all.md')
-rw-r--r--docs/source/markdown/options/publish-all.md12
1 files changed, 12 insertions, 0 deletions
diff --git a/docs/source/markdown/options/publish-all.md b/docs/source/markdown/options/publish-all.md
new file mode 100644
index 000000000..6651599a0
--- /dev/null
+++ b/docs/source/markdown/options/publish-all.md
@@ -0,0 +1,12 @@
+#### **--publish-all**, **-P**
+
+Publish all exposed ports to random ports on the host interfaces. The default is **false**.
+
+When set to **true**, publish all exposed ports to the host interfaces. The
+default is **false**. If the operator uses **-P** (or **-p**) then Podman will make the
+exposed port accessible on the host and the ports will be available to any
+client that can reach the host.
+
+When using this option, Podman will bind any exposed port to a random port on the host
+within an ephemeral port range defined by */proc/sys/net/ipv4/ip_local_port_range*.
+To find the mapping between the host ports and the exposed ports, use **podman port**.