kizzx2 / docker-wireguard-socks-proxy

Expose a WireGuard tunnel as a SOCKS5 proxy
https://hub.docker.com/r/kizzx2/wireguard-socks-proxy
MIT License
153 stars 39 forks source link

How to name the wireguard-file? #3

Open stempst0r opened 4 years ago

stempst0r commented 4 years ago

First things first: Thx for the great work!

I have one (userrelated) problem: Want to start the container with the "docker run" command. Here is my .sh-file: docker run -it --rm --cap-add=NET_ADMIN \ --name wireguard-socks-proxy \ --volume /home/pirate/wireguard/:/etc/wireguard/:ro \ -p 1080:1080 \ kizzx2/wireguard-socks-proxy

Running the script with "sh wireguard.sh" it ends in the message:

standard_init_linux.go:211: exec user process caused "exec format error"

The .conf-file in "/home/pirate/wirguard" has a very cryptig name given by my VPN-provider. I think the problem is, that the container can't find the file. Is there a specific name for the file, or did i use the "--volume" command the wrong way?

maxgillett commented 3 years ago

I believe there shouldn't be a trailing forward slash for the local volume: "/home/pirate/wireguard"