Docker-desktop 在 WSL2 中重新创建已删除的文件夹

Docker-desktop 在 WSL2 中重新创建已删除的文件夹

我遇到了一个奇怪的问题。我最近注意到,在重新启动 PC 后,我在 Windows 11 上的 WSL2 Ubuntu 发行版中删除的一些文件夹仍然存在。该文件夹是空的,但无论我做什么,它们总会在每次重新启动后回来。我安装了它loggedfs来查看发生了什么,以下是日志:

2022-06-28 13:47:22,970 INFO [default] LoggedFS not running as a daemon
2022-06-28 13:47:22,970 INFO [default] LoggedFS running as a public filesystem
2022-06-28 13:47:22,970 INFO [default] LoggedFS starting at /home/user/dev/.
2022-06-28 13:47:22,970 INFO [default] chdir to /home/user/dev/
2022-06-28 13:47:24,105 INFO [default] getattr /home/user/dev/ {SUCCESS} [ pid = 151 /mnt/wsl/docker-desktop/docker-desktop-proxy uid = 0 ]
2022-06-28 13:47:24,105 ERROR [default] getattr /home/user/dev/deleted_folder {FAILURE} [ pid = 151 /mnt/wsl/docker-desktop/docker-desktop-proxy uid = 0 ]
2022-06-28 13:47:24,106 INFO [default] getattr /home/user/dev/ {SUCCESS} [ pid = 151 /mnt/wsl/docker-desktop/docker-desktop-proxy uid = 0 ]
2022-06-28 13:47:24,106 ERROR [default] getattr /home/user/dev/deleted_folder {FAILURE} [ pid = 151 /mnt/wsl/docker-desktop/docker-desktop-proxy uid = 0 ]
2022-06-28 13:47:24,106 INFO [default] getattr /home/user/dev/ {SUCCESS} [ pid = 151 /mnt/wsl/docker-desktop/docker-desktop-proxy uid = 0 ]
2022-06-28 13:47:24,106 INFO [default] getattr /home/user/dev/ {SUCCESS} [ pid = 151 /mnt/wsl/docker-desktop/docker-desktop-proxy uid = 0 ]
2022-06-28 13:47:24,106 ERROR [default] getattr /home/user/dev/deleted_folder {FAILURE} [ pid = 151 /mnt/wsl/docker-desktop/docker-desktop-proxy uid = 0 ]
2022-06-28 13:47:24,106 INFO [default] getattr /home/user/dev/ {SUCCESS} [ pid = 151 /mnt/wsl/docker-desktop/docker-desktop-proxy uid = 0 ]
2022-06-28 13:47:24,107 INFO [default] mkdir /home/user/dev/deleted_folder 755 {SUCCESS} [ pid = 151 /mnt/wsl/docker-desktop/docker-desktop-proxy uid = 0 ]
2022-06-28 13:47:24,107 INFO [default] getattr /home/user/dev/deleted_folder {SUCCESS} [ pid = 151 /mnt/wsl/docker-desktop/docker-desktop-proxy uid = 0 ]

您可以清楚地看到 Docker 桌面尝试获取我的 removed_folder 的属性(但由于它不再存在而失败):

2022-06-28 13:47:24,105 ERROR [default] getattr /home/user/dev/deleted_folder {FAILURE} [ pid = 151 /mnt/wsl/docker-desktop/docker-desktop-proxy uid = 0 ]

然后它重新创建文件夹:

2022-06-28 13:47:24,107 INFO [default] mkdir /home/user/dev/deleted_folder 755 {SUCCESS} [ pid = 151 /mnt/wsl/docker-desktop/docker-desktop-proxy uid = 0 ]

似乎不是每个文件夹都会发生这种情况,所以我搞不清楚是什么原因导致了这个问题。有什么想法吗?谢谢。

答案1

下列的这个类似的问题,我在 WSL2 上运行了 Docker Desktop 故障排除并选择了“清除数据”。它起作用了,但我仍然不知道根本问题是什么。

相关内容