PRACTICE / UNDERSTAND / REPEAT

Docker: Networking

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

16 questionsAnswers explainedFree · no login
Question 1 of 16
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.