Which of the following container commands performs network port mapping?
Docker’s -p/--publish option maps a host port to a container port using the HOST_PORT:CONTAINER_PORT format. Thus, -p 80:8080 publishes host port 80 and directs it to port 8080 in the container.
-p
--publish
HOST_PORT:CONTAINER_PORT
-p 80:8080
Community Discussion