[英]Docker node cannot find file on mounted volume
I'm trying to run a docker container that has a volume mounted on it that contains ssl keys/files.我正在尝试运行一个 docker 容器,该容器上安装了一个包含 ssl 密钥/文件的卷。 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:这是我正在使用的 docker run 命令:
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).同样,当看到错误路径(抛出错误时显示的路径)和 pwd 路径(挖掘 docker 容器)时,这些路径似乎是对齐的。 Not sure why it cannot find the file.
不知道为什么找不到文件。
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.
该程序现在可以清楚地看到文件。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.