How does Docker's default bridge network differ from user-defined bridge networks regarding inter-container communication, particularly around "--link" (legacy) versus modern approaches?
Correct! Well done.
Incorrect.
The correct answer is B) On the default bridge network, containers can only communicate via IP addresses (no automatic DNS) and the legacy "--link" flag was needed for name-based linking; user-defined bridge networks provide automatic DNS-based service discovery without "--link"
Correct Answer
On the default bridge network, containers can only communicate via IP addresses (no automatic DNS) and the legacy "--link" flag was needed for name-based linking; user-defined bridge networks provide automatic DNS-based service discovery without "--link"
The default bridge network lacks automatic DNS resolution between containers (historically requiring "--link", now deprecated), while user-defined networks automatically register container names in an embedded DNS server, making "--link" unnecessary.