ekristen / docker-openvpn-client

OpenVPN Client for Docker
42 stars 40 forks source link

Moved the config file - can't read it #6

Open ratnose opened 5 years ago

ratnose commented 5 years ago

So in my setup I have all the config files in one place, so I tired to move them but now the client can't start saying: Options error: In [CMD-LINE]:1: Error opening configuration file: /appdata/ovpn/client.ovpn

This is my compose file: vpn: container_name: vpn image: ekristen/openvpn-client stdin_open: true tty: true command: --config /appdata/ovpn/client.ovpn --askpass /appdata/ovpn/client.pwd --auth-nocache cap_add:

What am I doing wrong here?

ekristen commented 5 years ago

Your trying to access a host path from the container. Your volume mount is right host:container but the command line should be referencing /vpn not ./appdata