Docker Networks
Last updated
Last updated
Bridge
Default network a container gets attached to
Private internal network created by Docker on the host
Each container in this network gets IP (usually in 172.17 series) and the containers can access each other
To access the containers from outside of the docker host, map ports of each container just like before
docker run Ubuntu
None
docker run Ubuntu --network=none
Host
docker run Ubuntu --network=host