This is a small alpine linux image (12MB!) with the wireguard-tools and iptables packages preinstalled.
This is based on https://github.com/felixfischer/wireguard-docker.git, however there are three major changes:
- Do not depend on upstream image jessfraz/wireguard
- Do not take wg-quick command from curl command
- Default standard port of 51820
Instead it uses the base alpine image and adds these packages via apk
Assuming you will upload to dockerhub are already logged in run the commands:
docker build -t username/image_name:version .
docker push username/image_name:version
This can be used within a kubernetes cluster with a ConfigMap or locally using a mounted file for /etc/wireguard/wg0/conf