Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Docker Exam DCA Topic 6 Question 113 Discussion

Actual exam question for Docker's DCA exam
Question #: 113
Topic #: 6
[All DCA Questions]

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

Solution: Use --link to access the container on the bridge network.

Show Suggested Answer Hide Answer
Suggested Answer: B

= The action of using--linkto access the container on the bridge network doesnotaccomplish the goal of creating a container that is reachable from its host's network.The--linkoption allows you to connect containers that are running on the same network, but it doesnotexpose the container's ports to the host1.To create a container that is reachable from its host's network, you need to use the--network hostoption, which attaches the container to the host's network stack and makes it share the host's IP address2.Alternatively, you can use the--publishor-poption to map the container's ports to the host's ports3.

: :Legacy container links | Docker Documentation:Networking using the host network | Docker Documentation:docker run reference | Docker Documentation


Contribute your Thoughts:

Raylene
2 days ago
Ah, the old --link trick. Brings back memories of the good ol' days of Docker. But hey, at least it gets the job done!
upvoted 0 times
...
Pete
4 days ago
Yes, using --link allows access on the bridge network.
upvoted 0 times
...
Bea
4 days ago
No way, that can't be right. Didn't they switch to using the bridge network by default? Time to hit the docs again.
upvoted 0 times
...
Lorriane
11 days ago
Hmm, I thought the --link option was deprecated. Guess I need to brush up on my container networking!
upvoted 0 times
Nikita
2 days ago
A) Yes
upvoted 0 times
...
...

Save Cancel