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

Networking · MCQQuestion link ↗

In `-p 8080:80`, which side is the host port?

Choose one answer
Answer & explanation

Answer: 8080

Port publishing uses `HOST_PORT:CONTAINER_PORT`, so host port 8080 forwards to container port 80.