bindfs-不适用于"/proc"文件夹中的文件夹 [英] bindfs - Doesn't work for folder inside "/proc"
问题描述
Bindfs不适用于"/proc"中的文件夹...
Bindfs doesn't work for folder inside "/proc"...
[root@some_host some_folder]# bindfs --map=root/<MY_USER> "/proc/<SOME_PID>/<SOME_FOLDER>" "/home/<MY_USER>/<SOME_FOLDER>"
Failed to resolve source directory `/proc/<SOME_PID>/<SOME_FOLDER>': No such file or directory
[root@some_host some_folder]# ls "/proc/<SOME_PID>/<SOME_FOLDER>"
some_file
为什么?
谢谢!
更新:Docker容器示例...
UPDATE: Example with Docker container...
我最终发现由于某种原因该命令...
I ended up finding out that for some reason this command...
sudo bindfs --map=root/eduardo "/proc/$(docker inspect --format {{.State.Pid}} 255d)/root" "/home/eduardo/Data/Temp/20180329.1/root"
...使bindfs在安装点而不是容器的文件系统上安装主机的文件系统(根目录).
... make bindfs mount the host's file system (root directory) on the mount point and not the container's file system.
但是命令...
ls "/proc/$(docker inspect --format {{.State.Pid}} 255d)/root"
...显示容器的文件系统(根文件夹)的内容.
... show the contents of the container's file system (root folder).
我看不到对此的解释!这没有道理! = |
I can not see an explanation for this! It makes no sense! =|
推荐答案
我发布了bindfs 1.13.10并提供了解决方法.
I released bindfs 1.13.10 with a workaround for this.
为何无法正常运行的说明: https://github.com. com/mpartel/bindfs/issues/66#issuecomment-428323548
Explanation for why it didn't work: https://github.com/mpartel/bindfs/issues/66#issuecomment-428323548
这篇关于bindfs-不适用于"/proc"文件夹中的文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!