Error while installing with docker on Mac


#1

I get the following error while trying to do docker-compose

docker-compose up -d
Starting squidex_squidex_mongo_1 … error

ERROR: for squidex_squidex_mongo_1 Cannot start service squidex_mongo: b’Mounts denied: \r\nThe path /etc/squidex/mongo/db\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: for squidex_mongo Cannot start service squidex_mongo: b’Mounts denied: \r\nThe path /etc/squidex/mongo/db\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.

MacOS Mojave
docker desktop 2.0.0.3 (31259)

/var/mongo/db is created and added to docker file sharing Preformatted text
screenshot for docker file sharing


#2

It is not a bug. The docker-compose uses a view volumes to store assets and the database files in the file system in the host system, so that the data does not get lost if the container is stopped.

You have to adjust the paths: https://github.com/Squidex/squidex-docker/blob/master/standalone/docker-compose.yml#L36