Docker can create its own internal networks. There are multiple options here, so this aspect of Docker can be confusing.
Docker Networking Types
The following video explains the Docker networking options and provides examples of their creation and use.
Docker Networking Explained