docker-openvpn-client
docker-openvpn-client copied to clipboard
Moved the config file - can't read it
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?
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