brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

Tip: set Unraid's Docker custom network type to ipvlan when macvlan causes call traces

Docker
~/tips/tip-unraid-docker-ipvlan-macvlan

Advanced view > Docker custom network type: ipvlan

Stops macvlan call traces by moving Unraid's custom Docker networks to ipvlan.

Call traces in the Unraid syslog that mention macvlan, sometimes followed by a frozen server, have a long history on the forums, and containers with their own LAN IP are usually involved. Before you start pulling containers apart, I’d check one dropdown in the Docker settings, because it’s the first fix Unraid itself recommends.

The network options are only editable while Docker is stopped, so set Enable Docker to No first. Then switch the page to the advanced view and look for Docker custom network type:

Settings > Docker > Enable Docker: No
Advanced view > Docker custom network type: ipvlan
Apply, then Enable Docker: Yes

The 6.12.4 release notes explain why this helps. macvlan for custom Docker networks is unreliable when its parent interface is a bridge such as br0, and br0 is what a lot of servers use. ipvlan has been the default Unraid ships with since 6.11.5, so on a recent install you may already be on it, and then your call traces come from somewhere else. The containers this is about are the ones on br0 with an address of their own, say an AdGuard Home container at 192.168.1.50.

The catch is your router. The same notes mention trouble with port forwarding on some routers, a Fritzbox by name, and reduced functionality in network tools such as Ubiquiti’s when containers run in ipvlan mode. A Fritzbox is a common sight in Dutch homes, so I wouldn’t skip that line. For those cases Unraid describes a second route: turn off bridging on eth0 under Settings, Network Settings, which makes Unraid use macvlan on eth0 itself, and set Host access to custom networks to Enabled. That avoids the call traces as well, but it also changes how your VMs and WireGuard tunnels connect, so I’d only go there when ipvlan gives you trouble.

Further reading: Unraid 6.12.4 release notes: fix for macvlan call traces, Unraid docs: managing and customizing containers

More Docker tips ONBUILD RUN /usr/local/bin/python-build --dir /app/src SHELL ["/bin/bash", "-c"] docker commit <container> myname/testimage:version3 docker import /path/to/exampleimage.tgz docker compose events All Docker tips (192) All topics

Link