docker network create|ls|connect|rm
docker network create|ls|connect|rm <name>
Risk: Safe
What it does
Manages networks: phone lines between containers.
When to use it
So containers can call each other by name.
Example
$ docker network create shopnetA new line. Start containers with --network shopnet.
$ docker network connect shopnet webPlug a running container in.
$ docker network lsList the lines: bridge, host, none and yours.
$ docker network inspect shopnetSee who is plugged into shopnet.
Learn it in: Phone lines: your own network · Official docs