Repository navigation
LAN Network
Gives containers their own IP on your LAN, like Unraid's br0: other devices reach them directly (for example Pi-hole on 192.168.1.53), without port mappings.
Not available on Docker Desktop (Windows / macOS).
- Settings > LAN network > Detect network. DockerUpdates reads the server's interface, subnet and gateway with a short-lived helper container; there is nothing to run on the host.
- Check the values:
-
Name of the Docker network (default
lan) -
Parent interface (e.g.
eth0,enp3s0) - Subnet and gateway
-
IP range (optional, recommended): a smaller block reserved for containers, e.g.
192.168.1.192/27, outside your router's DHCP pool so addresses never clash -
Driver:
macvlanon wired connections;ipvlanis chosen automatically on Wi-Fi, because access points usually reject extra MAC addresses
-
Name of the Docker network (default
- Enable.
The network is permanent: it cannot be disabled from the app, because containers depend on it. To remove it, move those containers to another network and run docker network rm lan on the host.
In Add container or Edit: choose the LAN network and type an IP in Fixed IP, then Check. DockerUpdates verifies that it is inside the subnet, is not the gateway, network or broadcast address, is not used by another container (also stopped ones that reserve it), and that no device on the LAN answers on it.
With macvlan, the server itself cannot reach containers on the LAN network (and they cannot reach the server), by design of the Linux kernel. Other devices on the LAN can. If a container needs to talk to the host, keep it on a bridge network, or add a macvlan "shim" interface on the host.
DockerUpdates · MIT License · Found a problem in these docs? Open an issue
Getting started
Features
Operations