docker network create¶
Description¶
Creates a user-defined network. Containers on it can reach each other by name.
Syntax¶
Common Options¶
| Option | Description |
|---|---|
-d DRIVER |
Network driver to use (default bridge) |
--subnet CIDR |
Set a custom subnet |
Example¶
Attach containers with --network my-net when you run them.