docker run -p

From wikieduonline
Revision as of 21:04, 6 February 2024 by Welcome (talk | contribs) (→‎Related)
Jump to navigation Jump to search

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: