Introduction
Sometimes you need to see how your Docker containers connect to networks. This helps you understand IP addresses, ports, and network modes used by containers.
When you want to find the IP address assigned to a running container to connect to it.
When you need to check which network a container is connected to for troubleshooting.
When you want to verify port mappings between the host and the container.
When you want to confirm if a container is using the default bridge network or a custom network.
When you want to inspect network settings before connecting containers together.