Docker networking has its own
docker network sub-command. The main commands include:
docker network lslists all networks on the local Docker host.
docker network createcreates new Docker networks. By default, it creates them with the
natdriver on Windows and the
bridgedriver on Linux. You can specify the driver (type of network) with the
docker network create -d overlay overnetwill create a new overlay network called overnet with the native Docker
docker network inspectprovides detailed configuration information about a Docker network.
docker network prunedeletes all unused networks on a Docker host.
docker network rmdeletes specific networks on a Docker host.