What type of network is created using docker network create?

0183

When you use the docker network create command, the default type of network created is a bridge network. Bridge networks are the most common network type in Docker and allow containers to communicate with each other while isolating them from other networks.

You can also specify different network drivers when creating a network, such as overlay, macvlan, or host, but if no driver is specified, Docker will create a bridge network by default.

For example, to create a bridge network explicitly, you can use:

docker network create --driver bridge my-bridge-network

This command creates a new bridge network named my-bridge-network.

0 Comments

no data
Be the first to share your comment!