[software development] Docker Desktop的File sharing这里现在无法添加路径,之前可以添加
Tofloor
poster avatar
173******57
deepin
2023-11-10 03:40
Author

如题,我之前用docker部署mysql,往File sharing这里添加过2个路径,现在还在。

现在我要部署另一个项目,需要挂载项目里的一个路径,然后点击"+"号,选中文件夹后,再点击"Apply&restart"按钮,点击"Apply&restart"按钮后,添加的路径就自动不见了,我以为是界面展示不下,只展示3个,其他的隐藏了,但是部署项目时还是提示"Error response from daemon: Mounts denied: The path xxx is not shared from the host and is not known to Docker. You can configure shared paths from Docker -> Preferences... -> Resources -> File Sharing. See https://docs.docker.com/ for more info."。我重启docker desktop也不行,我现在不知道这是docker desktop的问题还是操作系统的问题。

有其他网友遇到这个问题吗?在线等,急...

image.png

Reply Favorite View the author
All Replies
欢乐马
deepin
2024-04-22 22:13
#1

怎么解决的啊,分享一下啊。

Reply View the author
173******57
deepin
2024-04-24 00:53
#2
欢乐马

怎么解决的啊,分享一下啊。

我是试出来的。

把待挂载的文件夹的所有者及其所在组改为root试试,还有权限也给到最大。
image.png

Reply View the author