Services and User Management
A team runs containers on three Docker hosts joined in a Swarm. Containers for a service on different hosts must communicate privately with each other by service name over a single logical network. Which network type should they use?
Show the answer
Correct answerB. overlay
The overlay driver builds a distributed network across multiple Docker hosts, letting containers on different hosts communicate as if on one network. The bridge driver is limited to a single host, so containers on separate hosts cannot reach each other through it.