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: Host access to custom networks in Unraid's Docker settings

Docker
~/tips/tip-unraid-host-access-custom-networks

cat ~/tips/tip-unraid-host-access-custom-networks.md

A Docker setting in Unraid that decides whether the host and WireGuard clients can reach containers with custom IPs.

A container with its own IP address on a custom Docker network is not automatically reachable from everything else. One switch in the Docker settings changes who can reach it, and the Unraid docs mention it in a few places.

You find it under Settings, Docker: Host access to custom networks. The Docker troubleshooting page says to set it to Enabled if your setup requires it, for instance after you have recreated your custom networks following a Docker image rebuild.

The clearest example is in the WireGuard docs. For a setup with Docker containers on custom IPs, they list three steps: set Use NAT to No in the tunnel configuration, add a static route for the tunnel network (for example 10.253.0.0/24) on your router that points to the Unraid server, and set Host access to custom networks to Enabled. Their table marks that combination as the recommended setup for complex networks, with containers on custom IPs reachable through the tunnel. With host access disabled they are not.

There is one exception. The Unraid 7.1 release notes say that when Wi-Fi is enabled, Docker ignores the custom network type setting and uses ipvlan, and Host access to custom networks must be disabled.

The 6.12.4 release notes also list it as Enabled in their alternative setup for people who want to avoid macvlan problems. Since it depends on your network type, read the page that matches your release before you flip it.

Further reading: Unraid docs: Docker troubleshooting, Unraid docs: WireGuard, Unraid docs: 7.1.0 release notes

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