QuestionQ40

Deployment

Which of the following container commands performs network port mapping?

Explanation

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.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!