github.com/containers/podman/v5@v5.1.0-rc1/docs/source/markdown/options/publish-all.md (about)

     1  ####> This option file is used in:
     2  ####>   podman create, run
     3  ####> If file is edited, make sure the changes
     4  ####> are applicable to all of those.
     5  #### **--publish-all**, **-P**
     6  
     7  Publish all exposed ports to random ports on the host interfaces. The default is **false**.
     8  
     9  When set to **true**, publish all exposed ports to the host interfaces.
    10  If the operator uses **-P** (or **-p**) then Podman makes the
    11  exposed port accessible on the host and the ports are available to any
    12  client that can reach the host.
    13  
    14  When using this option, Podman binds any exposed port to a random port on the host
    15  within an ephemeral port range defined by */proc/sys/net/ipv4/ip_local_port_range*.
    16  To find the mapping between the host ports and the exposed ports, use **podman port**.