You want to create a container that is reachable from its host’s network. Does this action accomplish this?

You want to create a container that is reachable from its host’s network. Does this action accomplish this?

Solution: Use either EXPOSE or –publish to access the containers on the bridge network
A . Yes
B . No

Answer: B

Explanation:

The answer depends on whether you want to access the container from the host’s network or from other containers on the same network. EXPOSE and –publish have different effects on the container’s port visibility.

Reference: Docker run reference, Dockerfile reference, Docker networking overview

Latest DCA Dumps Valid Version with 55 Q&As

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments