docker-openvpn: The file '/etc/openvpn/vars' was not found

Looks like kylemanna/openvpn:latest is broken. Also kylemanna/openvpn:2.3 works fine.

$ docker run -v $OVPN_DATA:/etc/openvpn --log-driver=none --rm -it kylemanna/openvpn ovpn_initpki

Easy-RSA error:

The file '/etc/openvpn/vars' was not found.

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 25
  • Comments: 20 (7 by maintainers)

Commits related to this issue

Most upvoted comments

using 2.3 works

for the dummies like me

docker run -v $OVPN_DATA:/etc/openvpn --log-driver=none --rm kylemanna/openvpn:2.3 ovpn_genconfig -u udp://vpn.yourdomain.com
docker run -v $OVPN_DATA:/etc/openvpn --log-driver=none --rm -it kylemanna/openvpn:2.3 ovpn_initpki

@kylemanna hi, i’ve been using the 2.4 tag from dockerhub for months now without any problem. I see now that you overwrote the 2.4 tag on dockerhub just 14 days ago. Are you aware of the problem described in this thread?

@RafayAK #621 should fix this for you, can you try re-pulling and confirm? I think we can call this closed!

@RafayAK thanks for sharing, now I understand what’s going wrong.

Can you build the dev image and test it?

$ git fetch origin
$ git checkout origin/dev
$ docker build -t openvpn-test .

Then run the same command replacing kylemanna/openpvn:2.4 with openvpn-test and share your result. Once I hear this works I can merge the dev branch and close this issue for good.

Also kylemanna/openvpn:2.3 works fine.

The issue is about kylemanna/openvpn:latest