tellform / docker_files

MIT License
20 stars 17 forks source link

Cannot start service: b'Mounts denied #5

Open marktopper opened 6 years ago

marktopper commented 6 years ago
~/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 commented 6 years ago

@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 commented 6 years ago

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

sandeepchowdary7 commented 5 years ago

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 commented 5 years ago

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

davidem commented 5 years ago

@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 commented 4 years ago

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