docker network createcreates a new container network. The
-dflag lets you specify the driver to use, and the most common driver is the
overlaydriver. You can also specify remote drivers from 3rd parties. For overlay networks, the control plane is encrypted by default. Just add the
-o encryptedflag to encrypt the data plane (performance overheads may be incurred).
docker network lslists all of the container networks visible to a Docker host. Docker hosts running in swarm mode only see overlay networks if they are hosting containers attached to that particular network. This keeps network-related gossip to a minimum.
docker network inspectshows you detailed information about a particular container network. This includes scope, driver, IPv4 and IPv4 info, subnet configuration, IP addresses of connected containers, VXLAN network ID, and encryption state.
docker network rmdeletes a network