Intermediate Docker & Containers
Q53 / 100

What is the purpose of naming a Docker network and attaching multiple containers to it (instead of using the default bridge)?

Correct! Well done.

Incorrect.

The correct answer is B) A user-defined network provides automatic DNS-based service discovery, allowing containers to reach each other by container/service name rather than requiring static IP addresses

B

Correct Answer

A user-defined network provides automatic DNS-based service discovery, allowing containers to reach each other by container/service name rather than requiring static IP addresses

Explanation

On user-defined bridge networks, Docker provides automatic DNS resolution by container name, so services can reference each other by name (e.g. "db") instead of hardcoded IPs.

Progress
53/100