docker create a network code example
Example 1: docker create network
// docker network create -d <TYPE> <Name>
docker network create -d bridge my-bridge-network
Example 2: how to create a host driver in docker
$ docker network create -d bridge my-bridge-network
Example 3: check subnets docker
docker network ls [OPTIONS]
Example 4: docker network create
$ docker run -itd --network=mynet busybox
Example 5: create docker swarm
docker swarm init