Docker and CI/CD · Junior · Question 9 of 75

Does EXPOSE 3000 in a Dockerfile make the port reachable from the host?

Explanation

EXPOSE is metadata for people and tools. docker run -p 8080:3000 (or ports: in Compose) actually maps a host port to the container port.

Further reading

Problem with a question

Docker and CI/CD · Junior · question 9

Test yourself

Take the Docker and CI/CD · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz