码头工人未知文件权限窗口 10



我在docker中运行了一个以编程方式创建文件的应用程序。大多数情况下,文件是正确创建的,然后被删除。有时会创建具有未知权限的文件

drwxrwxrwx 0 root root 4096 Apr 17 21:41 ..
-????????? ? ?    ?       ?            ? __CG__NarwhalLayoutDomainEntitiesTheme.php
-rwxrwxrwx 1 root root 8314 Apr 19 12:46 __CG__NarwhalLayoutDomainEntitiesTheme.php.5ad802fc34f6b0.60147712
发生这种情况时,

尽管当我尝试删除该文件时,我可以在Windows资源管理器中看到该文件,但会收到此错误:

"You need permission to perform this action"
"You require permission from the computer's administrator to make changes to this file"

我什至尝试担任管理员,但它仍然不起作用,当我尝试从容器外壳内部删除文件时。我收到此错误:

rm:无法删除"__CG__NarwhalLayoutDomainEntitiesTheme.php":没有这样的文件或目录

当我重新启动 docker 时,此问题会消失,但我不想每隔几分钟重新启动 docker。

看起来这是 docker for Windows 的一个持续问题。我在这里找到了一个临时解决方案 https://github.com/docker/for-win/issues/525

我通过简单地将我的学说代理指向容器内的文件夹(例如/tmp(并且未挂载来解决问题。

最新更新