A

Admin • 828.43K Points
Coach

Q. What is the use of the EXPOSE instruction in a Dockerfile?

  • (A) To run a service
  • (B) To open a port on the host
  • (C) To document which port the container listens on
  • (D) To expose a volume

Explanation by: Admin
EXPOSE is used to indicate the port on which the container listens.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.