Home › Docker Tutorial › Networks
Networks
Let containers talk to each other.
Containers on the same user-defined network reach each other by container name, using Docker's built-in DNS. The default bridge network does not do this. Create one with docker network create and attach containers with --network.
Example code
docker network create appnet
docker network ls