OK, you now know a lot about both the local and the remote network drivers, and you have seen how several of them are created for you when you install Docker and/or initialize swarm mode (or install a remote driver). But, what if you want to create your own networks using some of these drivers? It is really pretty simple. Let's take a look. The built-in help for the network create command looks like this:
# Docker network create command syntax
# Usage: docker network create [OPTIONS] NETWORK
Examining this, we see there are essentially two parts of this command we need to handle, the OPTIONS followed by the NETWORK name to make the network we wish to create. What are our options? Well, there are quite a lot, but let's pick out a few to get you going quickly.
Probably the most important option is the --driver option. This is how we tell Docker...