Skip to content

Network modes: bridge, none and host

Select an icon to see what it is.

Step 2 of 6

none: only loopback

With --network none, dockerd still creates a network namespace but connects nothing to it. The container has only lo, with no route out and no way in. This suits jobs that must not touch the network.

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

ip addr inside the container

lo 127.0.0.1/8
(no other interface, no default route)