docker - 为什么我在同一个 docker 映像中看到不同的文件?
问题描述
为什么我看到ls /tmp
相同图像、不同机器(均为 Centos 7)的输出有所不同?不仅如此,如果我删除一个符号链接,它会出现损坏并ls
会回显一个奇怪的“找不到文件”错误。
$ docker-compose run --no-deps --rm <container> ls /tmp
Creating <project>_<container>_run ... done
yum.log
我不希望有一个文件/tmp
,而且在大多数机器中似乎都是这样,除了这台机器。我在下面看到的显着差异docker info
突出显示:
Server Version: 1.13.1
Storage Driver: overlay2
Backing Filesystem: xfs
Supports d_type: true --> false in the broken machine <--
Native Overlay Diff: true
Security Options:
seccomp
WARNING: You're not using the default seccomp profile --> not present in the broken machine <--
Profile: /etc/docker/seccomp.json
selinux --> not present in the broken machine <--
Kernel Version: 3.10.0-1160.36.2.el7.x86_64
编辑:似乎d_type
对于xfs
正常工作至关重要。
解决方案
推荐阅读
- c# - SuiteTalk(Netsuite) C# Console App Web Services Matrix Assembly Item
- xcode - 具有不同图标的应用程序“风味”在方案中以相同的图标显示
- python - 在 python 中使用正则表达式排除给定的字符串
- android - 在回收器视图中向下滚动,微调器中的选定项目发生变化
- excel - 链接到原始文件
- python - Beautifulsoup 获取数据值
- python - 识别“文件”类型的特定文件
- cmake - CMake 找不到 Protobuf `protobuf_generate_cpp`
- javascript - 用于单独输入 HH/mm 的 jQuery/Javascript 时间选择器
- r - 从 R 中的 Excel 文件中清除文本(删除停用词、标点符号等)