Docker撰写文件共享MacOS Catalina-Docker不知道卷

时间:2020-02-07 17:38:59

标签: ruby wordpress bash docker

我已经获得了一个使用dockerized wordpress实例的项目,我希望在本地使用docker开发该实例(目前它仅用于部署,而本地编辑则用于部署)。

这是我运行docker-compose时发生的事情。

Nicholas-MacBook-Pro:docker nicholasabrams$ docker-compose up 
WARNING: The WORDPRESS_HOST_VOLUME_LOCATION variable is not set. Defaulting to a blank string.
Removing redacted_wordpress_1
Redacted_db_1 is up-to-date
Recreating 41aeb49bc451_redacted_wordpress_1 ... 
Recreating 41aeb49bc451_redacted_wordpress_1 ... error

ERROR: for 41aeb49bc451_redacted_wordpress_1  Cannot start service wordpress: Mounts denied: 
The paths /redacted.com/wp-content and /readacted.com/brochure
are not shared from OS X and are not known to Docker.
You can configure shared paths from Docker -> Preferences... -> File Sharing.
See https://docs.docker.com/docker-for-mac/osxfs/#namespaces for more info.

ERROR: for wordpress  Cannot start service wordpress: Mounts denied: 
The paths /[uri].com/wp-content and /[uri].com/[project-name]
are not shared from OS X and are not known to Docker.
You can configure shared paths from Docker -> Preferences... -> File Sharing.
See https://docs.docker.com/docker-for-mac/osxfs/#namespaces for more info.

` 我试图将两个目录添加到docker共享资源中,但是发生相同的错误。我真的可以在这方面使用一些帮助,因为docker-compose对我来说是新手,而Docker本身并不是我的专家。谢谢!

0 个答案:

没有答案