my enviroment is Ubuntu 18.04 and docker version is 18.5,I tried the follwoing
$export OVPN_DATA=/home/myuser/workspace/OpenVPN_docker_community/openvpn_data
$docker run -v $OVPN_DATA:/etc/openvpn --log-driver=none --rm kylemanna/openvpn ovpn_genconfig -u udp://VPN.SERVER
$sudo docker run -v $OVPN_DATA:/etc/openvpn --log-driver=none --rm -it kylemanna/openvpn ovpn_initpki
~/workspace/openvpn_docker_community/openvpn_data$ sudo docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
dfdb2f56a2d5 kylemanna/openvpn “ovpn_run” 2 minutes ago Exited (1) 2 minutes ago
in this command I didn’t use their RSA key files,I used my own files,I copied my RSA file to
/home/myuser/workspace/OpenVPN_docker_community/openvpn_data/etc/openvpn
I didn’t use the configuration file of openvpn which was the image auto-generated,
I checked openvpn.log,it has such error
Options error: --dh fails with ‘/etc/openvpn/dh1024.pem’: No such file or directory (errno=2)
Options error: --ca fails with ‘/etc/openvpn/ca.crt’: No such file or directory (errno=2)
Options error: --cert fails with ‘/etc/openvpn/server.crt’: No such file or directory (errno=2)
Thu Jun 14 02:30:53 2018 WARNING: cannot stat file ‘/etc/openvpn/server.key’: No such file or directory (errno=2)
Options error: --key fails with ‘/etc/openvpn/server.key’: No such file or directory (errno=2)
Thu Jun 14 02:30:53 2018 WARNING: cannot stat file ‘/etc/openvpn/ta.key’: No such file or directory (errno=2)
Options error: --tls-auth fails with ‘/etc/openvpn/ta.key’: No such file or directory (errno=2)
Options error: Please correct these errors.
Use --help for more information.
Options error: --dh fails with ‘/etc/openvpn/dh1024.pem’: No such file or directory (errno=2)
Options error: --ca fails with ‘/etc/openvpn/ca.crt’: No such file or directory (errno=2)
Options error: --cert fails with ‘/etc/openvpn/server.crt’: No such file or directory (errno=2)
Thu Jun 14 03:15:47 2018 WARNING: cannot stat file ‘/etc/openvpn/server.key’: No such file or directory (errno=2)
Options error: --key fails with ‘/etc/openvpn/server.key’: No such file or directory (errno=2)
Thu Jun 14 03:15:47 2018 WARNING: cannot stat file ‘/etc/openvpn/ta.key’: No such file or directory (errno=2)
Options error: --tls-auth fails with ‘/etc/openvpn/ta.key’: No such file or directory (errno=2)
Options error: Please correct these errors.
Use --help for more information.
what wrong I have done?