Which host port receives requests for the published container port 8001?
docker run -p 9001:8001 example/webAnswer & explanation
Answer: 9001
The left side of HOST:CONTAINER is the host port.
Practice port publishing with self-contained questions. Check your answer, then use the explanation to understand the reasoning.
docker run -p 9001:8001 example/webAnswer: 9001
The left side of HOST:CONTAINER is the host port.