cmulk / wireguard-docker

Wireguard setup in Docker meant for a simple personal VPN
345 stars 92 forks source link

Need Help With Setting Up Docker #6

Closed ghost closed 4 years ago

ghost commented 4 years ago

Hey, I need help with Docker on one of my repo can you please help me out.

https://github.com/complexorganizations/wireguard-installer-manager/pull/146

I am trying to add docker support but i am very new to docker. Any Commits is welcome.

cmulk commented 4 years ago

Unfortunately it's not a very simple thing to get this working in docker. Since wireguard requires kernel modules on the host, the module install portion of your script is not going to work in docker unless the docker container is the exact same version as the host. I think the best thing you could do is split the script or add flags so that there is a "install module only" option that gets run on the host (one time) and a "module already installed" option compatible with running insider the docker container. Would take a decent amount of restructuring for you though