我试着用码头构建一个远程项目。我使用git克隆了这个项目,然后使用命令docker-compose up -d运行容器。
那我就知道这个错误了。
ERROR: for audio Cannot start service audio: b'Mounts denied: \r\nThe paths /data/googleappcred and /data/.aws\r\nare not shared from OS X and are not known to Docker.\r\nYou can configure shared paths from Docker -> Preferences... -> File Sharing.\r\nSee https://docs.docker.com/docker-for-mac/osxfs/#namespaces for more info.\r\n.'
ERROR: for postgres Cannot start service postgres: b'Mounts denied: \r\nThe path /data/postgres\r\nis not shared from OS X and is not known to Docker.\r\nYou can configure shared paths from Docker -> Preferences... -> File Sharing.\r\nSee https://docs.docker.com/docker-for-mac/osxfs/#namespaces for more info.\r\n.'
ERROR: Encountered errors while bringing up the project.

正如它所暗示的,我试图通过Docker->Preferences配置以下路径
/data/postgres
/data/googleappcred
/data/.aws但我得到了这个错误。
OS X上不存在导出/数据/postgres/ path

这些是当前在docker文件共享下列出的文件夹。

我很少尝试其他开发人员提出的其他替代方法,但是没有什么能够解决我的问题。任何帮助都是非常感谢的。
发布于 2019-07-14 15:33:25
我按照以下步骤解决了我的问题。
~/data/)创建一个目录/data/postgres
/data/googleappcred
/data/.aws发生此问题是因为系统根上没有数据文件夹。
https://stackoverflow.com/questions/56701852
复制相似问题