PRACTICE / UNDERSTAND / REPEAT
Docker practice question
Practice port publishing with self-contained questions. Check your answer, then use the explanation to understand the reasoning.
1 questionAnswers explainedFree · no login
Try this question
Which host port receives requests for the published container port 8001?
docker run -p 9001:8001 example/web
Answer & explanation
Answer: 9001
The left side of HOST:CONTAINER is the host port.