wyveo / craftcms-docker

Craft3/Craft2 CMS Docker base (Nginx, PHP-FPM 8, PostgreSQL/MariaDB, Redis)
https://hub.docker.com/r/wyveo/craftcms-docker
MIT License
100 stars 31 forks source link

Cannot start service redis: Mounts denied #1

Closed JMKelley closed 7 years ago

JMKelley commented 7 years ago

Thanks for the craftcms docker image.

I'm getting the following error when trying to compose-up

ERROR: for redis  Cannot start service redis: Mounts denied: 
The path /data
is not shared from OS X and is 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.

Any idea why this is happening?

colinwilson commented 7 years ago

Docker for Mac shares only the /Users/, /Volumes/, /private/, and /tmp directories by default.

Try adding the /data directory before running Docker.