Docker CLI
docker network create
Creates a named network. For the local lab choose a unique name and the bridge driver. Internal mode restricts external connectivity. This example creates and then removes a new empty network in an approved isolated VM; verify the name is unused and stop on unexpected failure. Have the lab owner confirm the address pool does not overlap existing routes before creation.
Formal Syntax & Structure
docker syntaxdocker
docker network create [OPTIONS] NETWORKParameters & Attributes
| Name | Type | Description |
|---|---|---|
| NETWORK | string | New unique network name. |
| --driver | string | Network driver; bridge is the normal default. |
| --internal | flag | Requests external connectivity restriction. |
Working Example
Example Snippetdocker
docker network create --driver bridge --internal bm-v05-ref-netdocker network rm bm-v05-ref-net