Network modes: bridge, none and host
Select an icon to see what it is.
Step 1 of 6
bridge: a private stack, plugged in
In bridge mode, dockerd creates a new network namespace for the container and connects it to a bridge with a veth pair. The container has eth0 with an address from the network's subnet. Traffic leaves through the bridge and is NATed by the host.
$ docker run --rm --network shop-net alpine ip addr PrevNext
ip addr inside the container (shape)
lo 127.0.0.1/8eth0 172.18.0.2/16 (an address from 172.18.0.0/16)