docker-openvpn-client icon indicating copy to clipboard operation
docker-openvpn-client copied to clipboard

Moved the config file - can't read it

Open ratnose opened this issue 5 years ago • 1 comments

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: - NET_ADMIN devices: - "/dev/net/tun:/dev/net/tun" volumes: - ./appdata/ovpn:/vpn

What am I doing wrong here?

ratnose avatar Jul 15 '19 13:07 ratnose

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

ekristen avatar Jul 15 '19 13:07 ekristen