DCA · Question #116
DCA Question #116: Real Exam Question with Answer & Explanation
The correct answer is B: No. Using docker network attach connects a container to an existing network, which facilitates inter-container communication but does not inherently expose container ports to the host's network.
Question
You want to create a container that is reachable from its host's network. Does this action accomplish this? Solution: Use network attach to access the containers on the bridge network
Options
- AYes
- BNo
Explanation
Using docker network attach connects a container to an existing network, which facilitates inter-container communication but does not inherently expose container ports to the host's network.
Common mistakes.
- A.
docker network attachconnects a container to an internal network but does not expose its services to the host system.
Concept tested. Docker container network attachment vs. exposure
Reference. https://docs.docker.com/engine/reference/commandline/network_attach/
Topics
Community Discussion
No community discussion yet for this question.