mirror of
https://github.com/amnezia-vpn/amneziawg-tools.git
synced 2026-10-14 05:41:59 +00:00
[GH-ISSUE #42] Problems with simultaneous restarts inside docker container #16
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
amnezia-vpn/amneziawg-tools#16
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @nike38rus on GitHub (Mar 21, 2026).
Original GitHub issue: https://github.com/amnezia-vpn/amneziawg-tools/issues/42
Hi there!
I'm using awg-tools inside docker containers. First startup is OK. But when container crashed and being restarted by docker there is error during startup routine of
awg-quick up %INTERFACE%(due to healthcheck failure for example):Docker image: amneziavpn/amneziawg-go, latest tag.
Restart policy: On failure, maximum retry count = 5.
amneziawg-tools: v1.0.20210914
Container startup command:
awg-quick up %INTERFACE% && while true; do if /usr/bin/wget -qO- -T 5 https://ipinfo.io/ip &>/dev/null; then echo "Tunnel is alive"; else echo ">>> Tunnel is DOWN <<<"; exit 1; fi; sleep 5; doneInvestigate vector:
awg-quick up %INTERFACE%throwed non-zero exit codeiptables-restore -niptables-restoire -nwas invoked twice, next startups - three times during eachawg-quick up %INTERFACE%awg-quick up %INTERFACE%invokeiptables-restore -nthree times instead of two times.Please help to fix.
%INTERFACE%.conf:
startup log:
@nike38rus commented on GitHub (Mar 21, 2026):
Update:
I've removed IPv6 from AllowedIPs option and the problem dissapeared (
AllowedIPs = 0.0.0.0/0). Now container is crasing only due wget check failures. I don't need IPv6 inside amnezia tunnel, so I guess I've fixed my problem. But the root cause of the problem is still somewhere there so I'll keep this issue open.Startup log: