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
no such file or directory for mounted secrets in container #1913
Comments
Hey @thilagak, are you able to share some sort of reproducible example? Otherwise all we can do is speculate on our side. |
Hi @Jeffail , I have all my secrets in relative path of ./certificates folder and below is my docker run: But benthos reports "no such file or directory" though i see the files exist inside container with read/execute permissions. Please let me know if you need more details. |
Docker volume mounts don't work with relative paths. See here and here for workarounds. Something like |
My bad. I actually use absolute path but in the comment I gave relative path to let know that where my files are placed. As I said, I can see the files inside container with right permissions but benthos reports "no such file or directory". |
@thilagak No worries! Can you please check again and maybe share more details? I don't see how |
Hi,
I am using docker volume to mount secret files into container volume and accessing it using the environment variable. Benthos process alway reports "no such file or directory" error though the files exist with right permissions and I am able to run system commands like ls, etc., on those files. Have no clue what could be the issue.
Greatly appreciate any help.
Regards
Thilaga
The text was updated successfully, but these errors were encountered: