{"action":"created","issue":{"url":"https://api.github.com/repos/zulip/docker-zulip/issues/162","repository_url":"https://api.github.com/repos/zulip/docker-zulip","labels_url":"https://api.github.com/repos/zulip/docker-zulip/issues/162/labels{/name}","comments_url":"https://api.github.com/repos/zulip/docker-zulip/issues/162/comments","events_url":"https://api.github.com/repos/zulip/docker-zulip/issues/162/events","html_url":"https://github.com/zulip/docker-zulip/issues/162","id":372759691,"node_id":"MDU6SXNzdWUzNzI3NTk2OTE=","number":162,"title":"Mounts Denied Issue Starting Docker Compose","user":{"login":"scottilee","id":7443383,"node_id":"MDQ6VXNlcjc0NDMzODM=","avatar_url":"https://avatars1.githubusercontent.com/u/7443383?v=4","gravatar_id":"","url":"https://api.github.com/users/scottilee","html_url":"https://github.com/scottilee","followers_url":"https://api.github.com/users/scottilee/followers","following_url":"https://api.github.com/users/scottilee/following{/other_user}","gists_url":"https://api.github.com/users/scottilee/gists{/gist_id}","starred_url":"https://api.github.com/users/scottilee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scottilee/subscriptions","organizations_url":"https://api.github.com/users/scottilee/orgs","repos_url":"https://api.github.com/users/scottilee/repos","events_url":"https://api.github.com/users/scottilee/events{/privacy}","received_events_url":"https://api.github.com/users/scottilee/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-10-23T01:01:34Z","updated_at":"2018-10-23T05:32:48Z","closed_at":null,"author_association":"NONE","body":"I am running Docker Version 18.03.1-ce-mac65 (24312) on MacOS Sierra 10.13.6. Cloning https://github.com/zulip/docker-zulip and running `docker-compose pull`, then `docker-compose up` results in the following errors:\r\n\r\n```\r\n$ docker-compose up\r\nStarting docker-zulip_redis_1 ...\r\ndocker-zulip_rabbitmq_1 is up-to-date\r\nStarting docker-zulip_zulip_1 ...\r\nStarting docker-zulip_zulip_1    ... error\r\ndocker-zulip_memcached_1 is up-to-date\r\nStarting docker-zulip_redis_1    ... error\r\nERROR: for docker-zulip_zulip_1  Cannot start service zulip: b'Mounts denied: \\r\\nThe path /opt/docker/zulip/zulip\\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.'\r\n\r\nERROR: for docker-zulip_redis_1  Cannot start service redis: b'Mounts denied: \\r\\nThe path /opt/docker/zulip/redis\\r\\nis not shared from OS X and is not known to Docker.\\r\\nYou can configure shaStarting docker-zulip_database_1 ... error\r\n\r\nERROR: for docker-zulip_database_1  Cannot start service database: b'Mounts denied: \\r\\nThe path /opt/docker/zulip/postgresql/data\\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.'\r\n\r\nERROR: for zulip  Cannot start service zulip: b'Mounts denied: \\r\\nThe path /opt/docker/zulip/zulip\\r\\nis not shared from OS X and is not known to Docker.\\r\\nYou can configure shared paths fromDocker -> Preferences... -> File Sharing.\\r\\nSee https://docs.docker.com/docker-for-mac/osxfs/#namespaces for more info.\\r\\n.'\r\n\r\nERROR: for redis  Cannot start service redis: b'Mounts denied: \\r\\nThe path /opt/docker/zulip/redis\\r\\nis not shared from OS X and is not known to Docker.\\r\\nYou can configure shared paths fromDocker -> Preferences... -> File Sharing.\\r\\nSee https://docs.docker.com/docker-for-mac/osxfs/#namespaces for more info.\\r\\n.'\r\n\r\nERROR: for database  Cannot start service database: b'Mounts denied: \\r\\nThe path /opt/docker/zulip/postgresql/data\\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.'\r\nERROR: Encountered errors while bringing up the project.\r\n```\r\n\r\nhttps://stackoverflow.com/questions/45122459/docker-mounts-denied-the-paths-are-not-shared-from-os-x-and-are-not-known seems to explain the issue but is anyone else having this issue?\r\n\r\nGoing to `File Sharing` under Docker Preferences and adding those directories (/opt/docker/zulip/{zulip,redis,postgresql}) does not fix the issue."},"comment":{"url":"https://api.github.com/repos/zulip/docker-zulip/issues/comments/432098585","html_url":"https://github.com/zulip/docker-zulip/issues/162#issuecomment-432098585","issue_url":"https://api.github.com/repos/zulip/docker-zulip/issues/162","id":432098585,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMjA5ODU4NQ==","user":{"login":"timabbott","id":2746074,"node_id":"MDQ6VXNlcjI3NDYwNzQ=","avatar_url":"https://avatars0.githubusercontent.com/u/2746074?v=4","gravatar_id":"","url":"https://api.github.com/users/timabbott","html_url":"https://github.com/timabbott","followers_url":"https://api.github.com/users/timabbott/followers","following_url":"https://api.github.com/users/timabbott/following{/other_user}","gists_url":"https://api.github.com/users/timabbott/gists{/gist_id}","starred_url":"https://api.github.com/users/timabbott/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timabbott/subscriptions","organizations_url":"https://api.github.com/users/timabbott/orgs","repos_url":"https://api.github.com/users/timabbott/repos","events_url":"https://api.github.com/users/timabbott/events{/privacy}","received_events_url":"https://api.github.com/users/timabbott/received_events","type":"User","site_admin":false},"created_at":"2018-10-23T05:32:48Z","updated_at":"2018-10-23T05:32:48Z","author_association":"MEMBER","body":"Try just replacing the `/opt/docker/zulip` paths with something under your home directory in the `docker-compose.yml` and see if that helps?  \r\n\r\nWe should also look at what other projects that need a database (e.g. GitLab) do for this."}}
{"actor":{"display_login":"timabbott"}}