Difference between revisions of "Docker run -p"

From wikieduonline
Jump to navigation Jump to search
Line 1: Line 1:
 
{{lc}}
 
{{lc}}
  [[docker run]] -p
+
  [[docker run]] -p     It will overwrite value defined by <code>EXPOSE</code> in <code>[[Dockerfile]]</code>
 
 
 
   -p, [[--publish]] list                  Publish a container's port(s) to the host
 
   -p, [[--publish]] list                  Publish a container's port(s) to the host
  

Revision as of 07:28, 18 January 2023

docker run -p     It will overwrite value defined by EXPOSE in Dockerfile
 -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: