Pcornel
Automation · Container Automation

Networks

Cheat sheet · https://pcornel.dk/topic.php?topic=5788

Back to the Topic

Answer

Container networks connect containers on bridge, host, overlay or macvlan networks. User-defined bridge networks give built-in DNS by container name, which Compose sets up automatically.

Remember

  • User-defined bridge networks give DNS by container name.
  • Host network shares the host's network stack.
  • Overlay networks span multiple hosts.

First checks

  • docker network ls — networks
  • docker network inspect <net> — members
  • Internal networks for backends — isolation

Verify in this order

container → network → other containers

Where it usually breaks

Input/desired state → request accepted → job/task terminal status → target object read-back → effective runtime state → original workload → regression/rollback readiness.

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=5788

Confirmation

Confirm action

Continue?