πŸ“Š Docker
Q. What is the purpose of the EXPOSE instruction in a Dockerfile?
  • (A) To open a port on the host machine
  • (B) To document which ports are used by the container
  • (C) To publish a container's port to the host
  • (D) To map a container's port to a specific host port
πŸ’¬ Discuss
βœ… Correct Answer: (B) To document which ports are used by the container

Explanation: The EXPOSE instruction documents which ports are intended to be used by the container.

Explanation by: Shiva Ram
The EXPOSE instruction documents which ports are intended to be used by the container.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
185
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Shiva Ram
Publisher
πŸ“ˆ
81%
Success Rate