What is the use of the EXPOSE instruction in a Dockerfile?
Correct answer
To document which port the container listens on
Explanation
EXPOSE is used to indicate the port on which the container listens.
Update: Admin added a tag on this question
Topics
By Admin · · 40 views