简体   繁体   English

Docker 节点在挂载的卷上找不到文件

[英]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:首先,这是我尝试运行的代码中抛出错误的部分: code_source_pick

Here's the docker run command that I'm using:这是我正在使用的 docker run 命令: docker_run_command

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.

相关问题 docker节点js文件存储卷 - docker node js file storage volume 是否可以忽略docker容器中已安装的Volume中的子文件夹(例如node_module)? - Is it possible to ignore a subfolder (e.g. node_module) in the mounted Volume in a docker container? Docker安装的卷仅在容器重启时更新 - Docker mounted volume only updates on container restart Docker 为 MongoDB 安装的卷设置了错误的所有者 - Docker sets wrong owner for MongoDB mounted volume 未找到 WSL 节点路径? 卷似乎已安装 - WSL Node path not found? Volume seems to be mounted 在主机上更改已装入卷中的文件时,未在docker容器中触发文件系统事件 - File system events not triggered in docker container when files in mounted volume are changed on the host 在 ECS 上运行 node.js 服务的 Docker 容器能否共享从 EFS 挂载的 node_modules 卷? - Can Docker containers running a node.js service on ECS in production share a node_modules volume mounted from EFS? Docker - 节点,找不到 mysql 模块 - Docker - Node, cannot find mysql module 找不到模块,docker - 节点中的 babel 配置 - Cannot find module, docker - babel config in node node_modules 未安装在 docker 容器中 - node_modules not mounted in docker container
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM