Command

Docker Create a Network Command

The Docker command to create a network is docker network create NAME.

Quick Answer

Command
docker network create NAME
DockerCommand

Create a Network

Type this command
docker network create NAME

Makes an isolated network so containers can reach each other by name.

Learn More

How to create a network in Docker

  1. Open the terminal or command interface for Docker.
  2. Type docker network create NAME, replace any placeholders, and run it.

Docker Create a Network Command

Run docker network create NAME.

Related Commands

Frequently asked questions

What is the Docker command to create a network?

Run docker network create NAME.

Where do I type this Docker command?

Type it in the terminal or command-line interface used by Docker.

Does this Docker command work on Mac and Windows?

Yes. The command text is the same on both platforms when the tool is installed.

Official source · How we verify