Repository navigation
Replies: 1 comment
|
This points much more to Docker/Compose namespace lifecycle than to Gluetun-specific routing. Gluetun's documented compose pattern is exactly The weak spot is restart propagation. So the practical mitigation is to restart the dependents after Gluetun restarts and is healthy: docker compose restart sonarror the equivalent for all services using If your Gluetun restarts are initiated by Compose, add long-form |
Uh oh!
There was an error while loading. Please reload this page.
Summary
I'm seeing an issue where a container configured with:
eventually loses its shared network namespace after the target container (
gluetun) has restarted.Docker metadata continues to report the correct
NetworkMode, but the running container is no longer in the same Linux network namespace as the target container.Restarting only the dependent container immediately restores correct operation.
Environment
Configuration
Simplified compose configuration:
Expected behaviour
The dependent container should continue sharing the target container's network namespace for its lifetime.
Running:
inside both containers should produce identical networking.
Actual behaviour
After the system has been running for some time, the dependent container loses network connectivity.
Symptoms:
502 Bad Gatewayping 8.8.8.8returnsNetwork unreachableip addrinside the dependent container only shows the loopback interfaceip routeis emptyRestarting only the dependent container fixes the issue immediately.
No restart of the target (
gluetun) container is required.Diagnostics
Target container
Dependent container
Network namespaces
Target container:
Dependent container:
The namespace inodes differ. After restarting
sonarrthe inodes are the same/proc/3679814/ns/net -> 'net:[4026533515]'Docker metadata
Docker still reports the expected configuration:
The referenced container ID matches the currently running target container:
The container has no independently attached networks, as expected:
Additional observations
The target container has restarted several times:
The dependent container has never restarted:
After the issue occurs:
NetworkMode.Could this be a generic docker issue or specific to gluetun's configuration? Any help to point me in the right direction would be appreciated. I'm tired of restarting all my containers every few days!
All reactions