ContainerNetwork-AutoFix ghcr.io/prophetse7en/containernetwork-autofix:latest https://github.com/prophetse7en/containernetwork-autofix/pkgs/container/containernetwork-autofix bridge sh false https://github.com/prophetse7en/containernetwork-autofix/issues https://github.com/prophetse7en/containernetwork-autofix ContainerNetwork AutoFix (CNAF) - Automatically recreates Docker containers that depend on a master container's network when the master container restarts. Perfect for containers routing through VPN containers like GluetunVPN. This is the ProphetSe7en fork of buxxdev/containernetwork-autofix with the Unraid template parser rewritten using xmlstarlet. The rewrite fixes three bugs in the upstream sed-based parser: - Healthchecks broken after rebuild (XML entities not decoded) - WebUI right-click broken in Unraid GUI (missing net.unraid.docker.* labels) - Hardware passthrough lost on rebuild (no Device case in parser) The fork is a drop-in replacement: same env vars, same mounts, same behavior - only the Repository line needs to change. When a master container (e.g., VPN) restarts and gets a new container ID, dependent containers using --net=container: lose network connectivity. CNAF automatically detects and recreates those dependent containers. Features: - Auto-detects dependent containers - Preserves container states (running/stopped) - Smart waiting for VPN establishment - Automatic log rotation - Zero manual configuration needed Tools: Network:VPN Status:Stable 2026-04-22 ### 2026-04-22 - v1.1.2: Alpine base image pinned to 3.21 (was `alpine:latest`) for reproducible builds and predictable security-patch cadence. Added SECURITY.md describing attack surface + reporting channel. No runtime behavior change. ### 2026-04-08 - v1.1.1: Fix timezone handling in log timestamps. `tzdata` is now installed and the template exposes a Timezone variable. Set `TZ` to your local zone (e.g. `Europe/Oslo`) to get log timestamps in local time. Blank or `UTC` keeps UTC. ### 2026-04-07 - v1.1.0: First public release of the ProphetSe7en fork. Three parser bugs fixed via xmlstarlet rewrite: healthchecks broken after rebuild (XML entities not decoded), WebUI right-click broken (missing net.unraid.docker.* labels), hardware passthrough lost on rebuild (Device config type added). Drop-in replacement — only the Repository line changes. https://raw.githubusercontent.com/prophetse7en/containernetwork-autofix/main/unraid-template.xml https://raw.githubusercontent.com/prophetse7en/containernetwork-autofix/main/icon.png --restart=unless-stopped -v /var/run/docker.sock:/var/run/docker.sock -v /boot/config/plugins/dockerMan/templates-user:/templates:ro /mnt/user/appdata/containernetwork-autofix vpn-gateway 15 1000 10 10