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] NETWORK

Parameters & Attributes

NameTypeDescription
NETWORKstringNew unique network name.
--driverstringNetwork driver; bridge is the normal default.
--internalflagRequests external connectivity restriction.

Working Example

Example Snippetdocker
docker network create --driver bridge --internal bm-v05-ref-netdocker network rm bm-v05-ref-net
Docker Reference