I’m trying to run a docker container that has a volume mounted on it that contains ssl keys/files. I keep getting a file not found error when I’ve triple-looked at all the directories and the error and can’t seem to wonder what is going on.
To start off, here’s the portion of my code that I’m trying to run that’s throwing errors:
Here’s the docker run command that I’m using:
Here’s the error (with the path that it tried to find the file at):
I’ve decided to dig into the container and try to see if the files are really there, which they are:
Again, the paths seem to line up when seeing the error path (the path shown when the error was thrown), and the pwd path (digging into the docker container). Not sure why it cannot find the file.
Advertisement
Answer
The files were actually symlinks/symbolic links, so I went to go retrieve the original files that they were linked up to and used those. The program now sees the files clearly.