ContainerNetwork-AutoFix

ContainerNetwork-AutoFix

Docker-Anwendung from buxxdev's Repository

Übersicht

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.

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

Laufzeit-Argumente

Netzwerk
bridge
Shell
sh
Privilegiert
false
Extra Params
--restart=unless-stopped -v /var/run/docker.sock:/var/run/docker.sock -v /boot/config/plugins/dockerMan/templates-user:/templates:ro

Konfiguration der Vorlage

AppDataPathrw

Optional: Persistent storage for logs

Ziel
/var/log
Standard
/mnt/user/appdata/containernetwork-autofix
Wert
/mnt/user/appdata/containernetwork-autofix
Master Container NameVariable

Select your VPN/master container from the dropdown. For custom container names, click EDIT and enter the name in the Value field.

Ziel
MASTER_CONTAINER
Standard
GluetunVPN|OpenVPN-Client|WireGuard|NordVPN|binhex-delugevpn|binhex-qbittorrentvpn
Restart Wait TimeVariable

Seconds to wait after master container restarts before recreating dependents (allows VPN to establish)

Ziel
RESTART_WAIT_TIME
Standard
15
Wert
15
Max Log LinesVariable

Maximum number of log lines to keep (automatic rotation)

Ziel
MAX_LOG_LINES
Standard
1000
Wert
1000
Max RetriesVariable

Number of times to retry finding master container on startup

Ziel
MAX_RETRIES
Standard
10
Wert
10
Retry DelayVariable

Seconds between retry attempts when finding master container

Ziel
RETRY_DELAY
Standard
10
Wert
10

Statistik herunterladen

1,234
Downloads insgesamt

Einzelheiten

Repository
buxxdev/containernetwork-autofix:latest
Zuletzt aktualisiert2025-10-17
Erstmals gesehen2025-11-04

Führen Sie ContainerNetwork-AutoFix auf Unraid aus.

ContainerNetwork-AutoFix ist gelistet in Community Apps für Unraid OS. Erkunden Sie Unraid, um einen flexiblen Heimserver, ein NAS oder ein Heimlabor aufzubauen.