Docker Networking

Container networking refers to the ability for containers to connect to and communicate with each other, or to non-Docker workloads.

Driver Description
bridge The default network driver.
host Remove container isolation between the container and the Docker Host.
none Completely isolate from the container and outer world.
overlay Overlay networks connect multiple Docker daemons together.

Network Commands

Commands Description
docker network ls List all the local networks
docker network create --driver <driver name> <network name> For creating new network
docker network disconnect <network name> Disconnect a container from a network
docker network inspect <network name> Display detailed information on one or more networks
docker network prune Remove all unused networks
docker network rm <network name> Remove one or more networks