nerdexam
DockerDocker

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.

Submitted by obi.ng· Apr 18, 2026Networking

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 attach connects 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

#Docker Networking#Bridge Network#Container Reachability#Port Mapping

Community Discussion

No community discussion yet for this question.

Full DCA PracticeBrowse All DCA Questions