Pruning networks

The last resource that can be pruned are networks. We will discuss networks in detail in Chapter 7, Single-Host Networking. To remove all unused networks, we use the following command:

$ docker network prune

This will remove the networks on which currently no container or service is attached. Please don't worry about networks too much at this time. We will come back to them and all this will make much more sense to you.