When configuring a Docker container's network, which option lets you create a dedicated subnet that containers can join, giving them isolation from other containers running on the same host?
A user-defined bridge network is correct because it creates a host-local Layer-2 segment; only containers explicitly attached to that network can communicate, providing isolation from workloads on other networks. The default bridge network connects every new container by default, so unrelated containers can still reach each other. A MACVLAN network places each container directly on the physical LAN with its own MAC address, not on an isolated internal subnet. An overlay network is designed to connect containers across multiple Docker hosts (often in Swarm), rather than isolating containers on a single host.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is a user-defined bridge network in Docker?
Open an interactive chat with Bash
How is a user-defined bridge network different from a default bridge network?
Open an interactive chat with Bash
Why might someone choose a MACVLAN network over a user-defined bridge?