0
0
Dockerdevops~5 mins

Bridge network default behavior in Docker - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is the default network driver used by Docker when no network is specified?
Docker uses the bridge network driver by default. It creates a private internal network on the host for containers to communicate.
Click to reveal answer
beginner
How does Docker's default bridge network handle container IP addressing?
Docker assigns each container a unique IP address within the bridge network's subnet, allowing containers to communicate using these IPs.
Click to reveal answer
intermediate
Can containers on the default bridge network communicate with each other by container name?
No, containers on the default bridge network cannot resolve each other by name. They must use IP addresses or user-defined networks for name resolution.
Click to reveal answer
intermediate
What is the role of NAT in Docker's default bridge network?
Docker uses Network Address Translation (NAT) to allow containers on the bridge network to access external networks like the internet through the host.
Click to reveal answer
beginner
How can you inspect the default bridge network configuration in Docker?
Use the command docker network inspect bridge to see details like subnet, gateway, and connected containers.
Click to reveal answer
What is the default subnet used by Docker's bridge network?
A172.17.0.0/16
B192.168.0.0/24
C10.0.0.0/8
D127.0.0.1/32
Can containers on the default bridge network communicate with each other using container names?
AYes, by default
BOnly on Windows hosts
CNo, they must use IP addresses
DOnly if linked explicitly
What command shows detailed info about the default bridge network?
Adocker network ls
Bdocker inspect container
Cdocker ps -a
Ddocker network inspect bridge
How does Docker allow containers on the bridge network to access the internet?
AUsing NAT through the host
BDirect public IP assignment
CVPN tunneling
DContainers cannot access the internet
Which of these is true about the default Docker bridge network?
AIt assigns public IP addresses to containers
BIt isolates containers from the host network
CIt allows automatic DNS resolution by container name
DIt requires manual IP assignment
Explain how Docker's default bridge network manages container communication and external access.
Think about how containers talk to each other and the outside world.
You got /4 concepts.
    Describe how to inspect and understand the configuration of Docker's default bridge network.
    Use Docker commands to explore network details.
    You got /4 concepts.