Closed 2003flo closed 1 year ago
What you wrote looks like the correct approach so far.
I am wondering about this, as I put the yml file in /etc/openvpn-status-web/config.yml
How did you do this exactly? It seems to be the crucial point.
I created that file new. On the Host.
Am 15.02.2023 um 22:58 schrieb Christian Nicolai @.***>:
What you wrote looks like the correct approach so far.
I am wondering about this, as I put the yml file in /etc/openvpn-status-web/config.yml
How did you do this exactly? It seems to be the crucial point.
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.
I created that file new. On the Host.
Then please read up on how Portainer and the container technology you use works. Containers are isolated from the host and do not have (by default) access to e.g. files or other resources on the host. Just because /etc/openvpn-status-web/config.yml
exists on the host, it does not exist in the container.
There is extra effort needed to make that work, maybe documentation like https://docs.portainer.io/user/docker/volumes/add can help
Cant you add to the readme howto and where to put that config?
Am 16.02.2023 um 10:04 schrieb Christian Nicolai @.***>:
I created that file new. On the Host.
Then please read up on how Portainer and the container technology you use works. Containers are isolated from the host and do not have (by default) access to e.g. files or other resources on the host. Just because /etc/openvpn-status-web/config.yml exists on the host, it does not exist in the container.
There is extra effort needed to make that work, maybe documentation like https://docs.portainer.io/user/docker/volumes/add can help
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.
Since I'm using https://docs.docker.com/compose/ I added an example for that to https://github.com/cmur2/openvpn-status-web/blob/master/README.md#startup
I don't know if or how that can be done with Portainer, sorry.
Hello,
I want to install this project in a Docker container. But it just does not want to work. What am I doing wrong?
This is how I proceeded: Started Portainer. Click on Images. Click on Build a new image. Gave an arbitrary name. Pasted the code from the readme ( https://github.com/cmur2/openvpn-status-web/blob/master/docs/Dockerfile ) into the web editor. Clicked Build the image. Portainer then told me the following output:
Now I chose Containers in Portainer. Click "add Container". Typed in the image's name. Gave another arbitrary name to the container. And clicked deploy. After that the container gets deployed but imediatley stops. Log says:
Config file not found!
I am wondering about this, as I put the yml file in /etc/openvpn-status-web/config.yml