📧 chinmayeepavi@gmail.com Support

Networking

A Docker network lets containers communicate. Containers on the same user-defined network can reach each other by container name, which is the cleanest way to wire multi-container applications.

docker network ls                     # list networks
docker network create mynetwork
docker network inspect bridge
docker network connect mynetwork <container>
docker network disconnect mynetwork <container>
docker network rm mynetwork
docker network prune                  # remove all unused networks
docker network --help

Options available when connecting a container to a network include --alias (a network-scoped alias), --ip and --ip6 (static addresses), and --link-local-ip.