PRACTICE / UNDERSTAND / REPEAT

Docker: Port publishing

Practice port publishing with self-contained questions. Check your answer, then use the explanation to understand the reasoning.

30 questionsAnswers explainedFree · no login
Question 1 of 30
Port publishing · MCQQuestion link ↗

Which host port receives requests for the published container port 8001?

docker run -p 9001:8001 example/web
Choose one answer
Answer & explanation

Answer: 9001

The left side of HOST:CONTAINER is the host port.