Internal networks and segmentation
An internal network restricts ordinary external routing for its members. It is not the same as the none driver, which leaves only loopback networking. Internal members can communicate with one another, and host-side access may still exist depending on gateway configuration. A container attached to both an internal and a regular bridge can have connectivity on both. Treat it as a trust boundary crossing and assess application-level forwarding. A network membership decision is not a user authorization decision.
Worked networking scenario
Offline design exercise only. All addresses, topology and observations are fictional; do not contact endpoints, change host networking, create a Swarm or modify firewall rules. A real verification requires an approved disposable environment and documented scope. Keep the exercise offline. For any separately authorized Docker verification, identify the effective endpoint (including DOCKER_HOST and DOCKER_CONTEXT) before sending even read-only Engine requests. Record server version and platform; redact sensitive metadata.
Synthetic membership matrix: front data (internal)client yes noapi yes yesdatabase no yesmaintenance no no (network none)No published ports.Client and API share front; API and database share data. Client lacks direct data membership. The API may deliberately relay authorized requests, so segmentation does not prevent all indirect access. A maintenance job on none can still perform local computation and use IPv4 loopback; Docker does not configure IPv6 loopback for this driver. Test application authorization separately. Treat the matrix as intended connectivity, not a measured deny result. For a later approved verification distinguish direct routing from application relay, and check each endpoint’s memberships and gateway mode.
Common mistake
An internal bridge is not a guarantee of absolute host isolation or absence of all outbound paths.
Manual practice
Draw intended direct paths and an indirect authorized request through API. Identify why attaching database to front would increase exposure.
Use the offline worksheet lab-fixtures/docker-advanced-networking/04-internal-networks/scenario.txt. No external connectivity or Docker installation is necessary for this task.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
Internal networks and segmentation — Knowledge check
Interpret network design and diagnostic evidence without live infrastructure.
Which service shares both networks?
What does network none retain?
Does internal membership enforce application roles?