ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 71 - DCA discussion

Report
Export

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

Answers
A.

Yes

B.

No

Answers
B.

No

Suggested 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

asked 08/11/2024
Amir Arefi
35 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first