Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot start service: b'Mounts denied #5

Open
marktopper opened this issue Apr 18, 2018 · 6 comments
Open

Cannot start service: b'Mounts denied #5

marktopper opened this issue Apr 18, 2018 · 6 comments

Comments

@marktopper
Copy link

~/Sites $ git clone https://github.com/tellform/docker_files
Cloning into 'docker_files'...
remote: Counting objects: 61, done.
remote: Total 61 (delta 0), reused 0 (delta 0), pack-reused 61
Unpacking objects: 100% (61/61), done.
~/Sites $ cd docker_files/
~/Sites/docker_files (master) $ cp .env.dist .env
~/Sites/docker_files (master) $ docker-compose up -d
Creating network "dockerfiles_default" with the default driver
Creating dockerfiles_web_1 ...
Creating dockerfiles_redis_1 ...
Creating dockerfiles_mongo_1 ... error

Creating dockerfiles_redis_1 ... error
s from Docker -> Preferences... -> File Sharing.\r\nSee https://docs.docker.com/docker-for-mac/osxfs/#namespaces for more info.\r\n.'
Creating dockerfiles_web_1   ... error
ERROR: for dockerfiles_redis_1  Cannot start service redis: b'Mounts denied: \r\nThe path /opt/tellform_data/redis\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 dockerfiles_web_1  Cannot start service web: b'Mounts denied: \r\nThe path /opt/tellform_data/certs\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 mongo  Cannot start service mongo: b'Mounts denied: \r\nThe path /opt/tellform_data/mongo\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 redis  Cannot start service redis: b'Mounts denied: \r\nThe path /opt/tellform_data/redis\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 web  Cannot start service web: b'Mounts denied: \r\nThe path /opt/tellform_data/certs\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.

Any idea how to solve this?

@spkjess
Copy link

spkjess commented Oct 20, 2018

@marktopper

  1. Make new directories /opt/tellform_data/certs and /opt/tellform_data/mongo
  2. Go to Docker > Preferences > File Sharing
  3. Add /opt/tellform_data/certs and /opt/tellform_data/mongo
  4. Restart docker

These works for me.

@Kielan
Copy link

Kielan commented Nov 13, 2018

Also not working for me, this issue is probably better suited for
https://github.com/docker/for-mac

@sandeepchowdary7
Copy link

sandeepchowdary7 commented Apr 2, 2019

Guys Steps to solve

  1. Remove laradock dirc from your project
    2.Clone laradock from https://laradock.io and Run container commands to install required containers.

That's all everything should work.

@danwild
Copy link

danwild commented Oct 17, 2019

Had very similar issue (with docker desktop for mac), restarting docker fixed it.. \o/

@davidem
Copy link

davidem commented Nov 14, 2019

@marktopper

  1. Make new directories /opt/tellform_data/certs and /opt/tellform_data/mongo
  2. Go to Docker > Preferences > File Sharing
  3. Add /opt/tellform_data/certs and /opt/tellform_data/mongo
  4. Restart docker

These works for me.

And don't forget to mention to "chown -R /opt/tellform_data" to the user running docker desktop. Otherwise mongodb will start complaining about lack of permissions... :)

@byteab
Copy link

byteab commented Jun 4, 2020

your mounting the container to a directory that doesn't exist

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants