Difference between revisions of "Docker run -p"

From wikieduonline
Jump to navigation Jump to search
Line 5: Line 5:
  
  
  -p
+
  -p [[--publish]]
  -P
+
  -P --publish-all                    Publish all exposed ports to random ports
  
 
== Related ==
 
== Related ==

Revision as of 07:27, 18 January 2023

docker run -p
 -p, --publish list                   Publish a container's port(s) to the host


-p --publish
-P --publish-all                    Publish all exposed ports to random ports

Related

See also

Advertising: