问题描述:在Mac系统下,尝试让系统根目录下的文件与容器内文件进行映射时报错。
报错:docker: Error response from daemon: Mounts denied:
The path xxx is not shared from OS X and is not known to Docker.
解决:
- 打开Docker客户端的首选项(Preference)
- 找到 Resources下的 FILE SHARING
- 配置你允许让Docker访问使用的目录
问题描述:在Mac系统下,尝试让系统根目录下的文件与容器内文件进行映射时报错。
报错:docker: Error response from daemon: Mounts denied:
The path xxx is not shared from OS X and is not known to Docker.
解决: