Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ratnose opened this issue Jul 15, 2019 · 1 comment
Open

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

ratnose opened this issue Jul 15, 2019 · 1 comment

Comments

@ratnose
Copy link

ratnose commented Jul 15, 2019

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?

@ekristen
Copy link
Owner

ekristen commented Jul 15, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants