Automation, Orchestration, and Scripting
An administrator deploys two Swarm services on different nodes. The api service must reach the db service by its service name, and the traffic must cross hosts. Which network driver should both services be attached to?
Show the answer
Correct answerD. overlay
An overlay network spans the swarm nodes and provides service-name DNS resolution across hosts. A bridge network is local to a single Docker host, so it cannot carry traffic between containers on different nodes.