PRACTICE / UNDERSTAND / REPEAT
Docker practice question
Practice networking with self-contained questions. Check your answer, then use the explanation to understand the reasoning.
1 questionAnswers explainedFree · no login
Try this question
In `-p 8080:80`, which side is the host port?
Answer & explanation
Answer: 8080
Port publishing uses `HOST_PORT:CONTAINER_PORT`, so host port 8080 forwards to container port 80.