Here are 5 focused questions based on the Docker Networking tutorial from DevOpsSchool:
- What are the three default Docker networks created during installation, and what primary function does each provide?
- How does Docker assign IP addresses and establish gateway settings for containers on the default bridge network?
- Explain how the
docker network inspect bridge
command helps in understanding container connectivity and network configuration.
- Why is service discovery using container names not supported by default on Docker’s bridge network, and what legacy option allows name-based linking?
- How do the
-P
(uppercase) and -p
(lowercase) flags differ when mapping container ports to the Docker host, and how can iptables -t nat -L -n
be used to observe these mappings?