docker-openvpn | forked from kylemanna/docker-openvpn | Natural Language Processing library
kandi X-RAY | docker-openvpn Summary
kandi X-RAY | docker-openvpn Summary
forked from kylemanna/docker-openvpn
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of docker-openvpn
docker-openvpn Key Features
docker-openvpn Examples and Code Snippets
Community Discussions
Trending Discussions on docker-openvpn
QUESTION
I have problems with a heretic docker container... I tried to follow this tutorial, trying to build a OpenVPN in my new raspberry (the first one in my life)... and I think I did something really wrong... I tried to run it with reset policy: "always"
This container has an error each time I try to run it,
standard_init_linux.go:211: exec user process caused "exec format error"
It tries to run each 10 seconds during 3 seconds, more or less, and always with a different Docker Container ID. It runs with different PID, too...
I've tried some solutions I've found on the Internet, trying to stop this madness...
...ANSWER
Answered 2020-Feb-22 at 16:33It seems you are using systemd script.
You should try with this command.
systemctl stop docker-openvpn@NAME.service
replace NAME
with whatever name you have given to your service.
It is stated in their documentation
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install docker-openvpn
Clone this repo and build the image git clone https://github.com/bofm/docker-openvpn.git cd docker-openvpn docker-build -t vpn .
Pick a name for the $OVPN_DATA data volume container. It's recommended to use the ovpn-data- prefix to operate seamlessly with the reference systemd service. Users are encourage to replace example with a descriptive name of their choosing. OVPN_DATA="ovpn-data"
Initialize the $OVPN_DATA container that will hold the configuration files and certificates. The container will prompt for a passphrase to protect the private key used by the newly generated certificate authority. Replace VPN.SERVERNAME.COM with IP address or public hostname of your server. docker volume create --name $OVPN_DATA docker run -v $OVPN_DATA:/etc/openvpn --rm vpn ovpn_genconfig -u udp://VPN.SERVERNAME.COM docker run -v $OVPN_DATA:/etc/openvpn --rm -it vpn ovpn_initpki
Start OpenVPN server processes (UDP + TCP) docker run --name vpn-udp -v $OVPN_DATA:/etc/openvpn -d -p 1194:1194/udp --cap-add=NET_ADMIN vpn docker run --name vpn-tcp -v $OVPN_DATA:/etc/openvpn --rm -p 443:1194/tcp --privileged vpn ovpn_run --proto tcp
Generate a client certificate without a passphrase docker run -v $OVPN_DATA:/etc/openvpn --rm -it vpn easyrsa build-client-full CLIENTNAME nopass
Retrieve the client configuration with embedded certificates docker run -v $OVPN_DATA:/etc/openvpn --rm vpn ovpn_getclient CLIENTNAME > CLIENTNAME.ovpn
Backup docker exec vpn-udp tar -cz /etc/openvpn > ovpn_data.tar.gz
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page