wireguard-go in a container, becuase WG_I_PREFER_BUGGY_USERSPACE_TO_POLISHED_KMOD=1
I needed wanted to run a wireguard VPN server on a system without access to kernel modules (GKE coos)
Based on activeeos/wireguard-docker, kernel module version of wireguard in a container, which you should probably be using
CAP_NET_ADMIN
and/dev/net/tun
- A
wg-quick
config file
- mount conf file into
/etc/wireguard/
, (name doesn't matter) - expose the port as specified in conf file
docker run --rm \
--cap-add=NET_ADMIN \
-v /dev/net/tun:/dev/net/tun \
-v /abs/path/to/wg-quick/conf/file:/etc/wireguard/name_of_interface.conf \
-p port:expose \
seankhliao/wggo
With docker:
docker build \
.
- activeeos/wireguard-docker: kernel mod version