Q. What is the purpose of the 'EXPOSE' instruction in a Dockerfile?
β
Correct Answer: (B)
To specify which ports the container will listen on
Explanation: The 'EXPOSE' instruction in a Dockerfile informs Docker that the container listens on the specified network ports at runtime. It does not publish the port to the host.