ContainerNetwork-AutoFix

ContainerNetwork-AutoFix

Aplicación Docker from buxxdev's Repository

Visión general

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

Argumentos en tiempo de ejecución

Red
bridge
Concha
sh
Privilegiado
false
Parámetros adicionales
--restart=unless-stopped -v /var/run/docker.sock:/var/run/docker.sock -v /boot/config/plugins/dockerMan/templates-user:/templates:ro

Configuración de plantillas

AppDataPathrw

Optional: Persistent storage for logs

Objetivo
/var/log
Por defecto
/mnt/user/appdata/containernetwork-autofix
Valor
/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.

Objetivo
MASTER_CONTAINER
Por defecto
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)

Objetivo
RESTART_WAIT_TIME
Por defecto
15
Valor
15
Max Log LinesVariable

Maximum number of log lines to keep (automatic rotation)

Objetivo
MAX_LOG_LINES
Por defecto
1000
Valor
1000
Max RetriesVariable

Number of times to retry finding master container on startup

Objetivo
MAX_RETRIES
Por defecto
10
Valor
10
Retry DelayVariable

Seconds between retry attempts when finding master container

Objetivo
RETRY_DELAY
Por defecto
10
Valor
10

Descargar estadísticas

1,234
Descargas totales

Detalles

Repositorio
buxxdev/containernetwork-autofix:latest
Última actualización2025-10-17
Visto por primera vez2025-11-04

Ejecute ContainerNetwork-AutoFix en Unraid.

ContainerNetwork-AutoFix se encuentra en Community Apps para Unraid OS. Explore Unraid para crear un servidor doméstico flexible, un NAS o un laboratorio doméstico.