Generic Docker image for running an AmneziaWG client using amneziawg-go and amneziawg-tools.
- Brings up an AmneziaWG interface from
/config/<name>.conf - Manages NAT and routing rules automatically in
entrypoint.sh - Supports both IPv4 and IPv6 with graceful fallback when IPv6 is unavailable
- Mount a WireGuard/AmneziaWG config at:
/config/wg0.conf
git clone <repo>
docker build -t amneziawg-client .docker run --rm \
--cap-add NET_ADMIN \
--device /dev/net/tun \
-v /path/to/config:/config:ro \
-e AWG_INTERFACE=wg0 \
-e AWG_AUTO_NAT=true \
-e AWG_MSS_CLAMP=true \
-e AWG_IP_FORWARD=true \
-e DISABLE_IPV6=false \
amneziawg-clientAWG_INTERFACE(default:wg0) — config file name under/configAWG_AUTO_NAT(default:true) — add MASQUERADE rulesAWG_MSS_CLAMP(default:true) — add TCPMSS clamping rulesAWG_IP_FORWARD(default:true) — enables IP forwardingDISABLE_IPV6(default:false) — force disables IPv6 processing