ContainerNetwork-AutoFix

ContainerNetwork-AutoFix

Application Docker from buxxdev's Repository

Vue d'ensemble

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

Arguments d'exécution

Réseau
bridge
Coquille
sh
Privilégié
false
Paramètres supplémentaires
--restart=unless-stopped -v /var/run/docker.sock:/var/run/docker.sock -v /boot/config/plugins/dockerMan/templates-user:/templates:ro

Configuration du modèle

AppDataPathrw

Optional: Persistent storage for logs

Cible
/var/log
Défaut
/mnt/user/appdata/containernetwork-autofix
Valeur
/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.

Cible
MASTER_CONTAINER
Défaut
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)

Cible
RESTART_WAIT_TIME
Défaut
15
Valeur
15
Max Log LinesVariable

Maximum number of log lines to keep (automatic rotation)

Cible
MAX_LOG_LINES
Défaut
1000
Valeur
1000
Max RetriesVariable

Number of times to retry finding master container on startup

Cible
MAX_RETRIES
Défaut
10
Valeur
10
Retry DelayVariable

Seconds between retry attempts when finding master container

Cible
RETRY_DELAY
Défaut
10
Valeur
10

Télécharger les statistiques

1,234
Total des téléchargements

Détails

Référentiel
buxxdev/containernetwork-autofix:latest
Dernière mise à jour2025-10-17
Première vue2025-11-04

Exécutez ContainerNetwork-AutoFix sur Unraid.

ContainerNetwork-AutoFix est listé dans Community Apps pour Unraid OS. Explorez Unraid pour créer un serveur domestique flexible, un NAS ou un laboratoire domestique.