Skip to content

Network modes: bridge, none and host

Select an icon to see what it is.

Step 3 of 6

host: no new namespace

With --network host, dockerd does not create a network namespace. The container's process runs in the host's own. It sees the host's real interfaces and addresses, such as 10.0.0.20.

$ docker run --rm --network host alpine ip addr

ip addr inside the container (the host's interfaces)

lo 127.0.0.1/8
eth0 10.0.0.20 (the host's own address)
docker0 172.17.0.1/16