Skip to content
M-DCA
Image Creation, Management, and Registry
easy
Question 9 of 40

What does the EXPOSE 8080 instruction do in a Dockerfile?

APublishes port 8080 on the host automatically
BDocuments that the container intends to listen on port 8080
CCreates a firewall rule permitting inbound TCP 8080 on every swarm node
DChanges the application so it starts listening on port 8080

Educational Content — CertQnA practice questions are written against official exam objectives, covering the same domains tested on the real exam. All content is original and independent — not actual exam questions, not affiliated with any certification vendor. Learn more about our content policy

Discussion

Be the first to share your understanding of this concept

⚠️ Discussion is for concept clarification only. Do not share or request actual exam questions or answers.

Sign in to join the discussion