0
0
Computer Networksknowledge~5 mins

Container networking in Computer Networks - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is container networking?
Container networking is the way containers communicate with each other and with the outside world using network connections.
Click to reveal answer
beginner
Name a common network model used by containers to communicate within the same host.
The bridge network model is commonly used for containers to communicate within the same host by connecting them to a virtual bridge.
Click to reveal answer
beginner
What is the purpose of port mapping in container networking?
Port mapping connects a port on the host machine to a port inside the container, allowing external access to container services.
Click to reveal answer
intermediate
Explain the difference between 'host' and 'bridge' network modes in containers.
In 'host' mode, containers share the host's network stack directly, while in 'bridge' mode, containers get their own network namespace connected via a virtual bridge.
Click to reveal answer
intermediate
What role do container network interfaces (CNIs) play?
CNIs are plugins that configure network interfaces for containers, enabling them to connect to different network types and manage IP addresses.
Click to reveal answer
Which network mode allows a container to use the host's network directly?
AHost mode
BOverlay mode
CBridge mode
DNone mode
What does port mapping in container networking do?
AConnects containers to each other
BMaps container ports to host ports for external access
CCreates a virtual network bridge
DAssigns IP addresses to containers
Which plugin type is used to manage container network interfaces?
AVPN
BDNS
CCNI
DHTTP
What is the main purpose of the bridge network in container environments?
ATo isolate containers from each other
BTo provide internet access to containers
CTo connect containers across different hosts
DTo connect containers on the same host
Overlay networks in container networking are mainly used to:
AConnect containers across multiple hosts
BConnect containers on the same host
CAssign IP addresses to containers
DMap ports from host to container
Describe how containers communicate within the same host and how port mapping helps external access.
Think about virtual bridges and how outside users reach container apps.
You got /4 concepts.
    Explain the difference between host network mode and bridge network mode in container networking.
    Consider how containers share or separate network resources.
    You got /4 concepts.