DCA · Question #163
Which networking drivers allow you to enable multi-host network connectivity between containers?
The correct answer is A. macvlan, ipvlan, and overlay. The macvlan, ipvlan, and overlay networking drivers enable multi-host network connectivity for containers in Docker.
Question
Which networking drivers allow you to enable multi-host network connectivity between containers?
Options
- Amacvlan, ipvlan, and overlay
- Bbridge, user-defined, host
- Cbridge, macvlan, ipvlan, overlay
- Dhost, macvlan, overlay, user-defined
How the community answered
(28 responses)- A93% (26)
- C4% (1)
- D4% (1)
Why each option
The `macvlan`, `ipvlan`, and `overlay` networking drivers enable multi-host network connectivity for containers in Docker.
The `macvlan` and `ipvlan` drivers allow containers to connect directly to the host's physical network, enabling them to communicate across hosts as if they were physical devices on the same segment. The `overlay` driver creates a distributed network across multiple Docker daemon hosts, allowing containers on different hosts to communicate seamlessly using VXLAN encapsulation.
The `bridge` and `user-defined` bridge networks are primarily single-host networks by default, and `host` networking directly uses the host's network stack without providing multi-host container-to-container connectivity.
The `bridge` network driver is generally for single-host connectivity, making this option incorrect for multi-host capabilities.
The `host` network driver does not provide multi-host container-to-container connectivity, and `user-defined` bridge networks are primarily single-host.
Concept tested: Docker multi-host networking drivers
Source: https://docs.docker.com/network/drivers/
Topics
Community Discussion
No community discussion yet for this question.