docker_files
docker_files copied to clipboard
Cannot start service: b'Mounts denied
~/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?
@marktopper
- Make new directories /opt/tellform_data/certs and /opt/tellform_data/mongo
- Go to Docker > Preferences > File Sharing
- Add /opt/tellform_data/certs and /opt/tellform_data/mongo
- Restart docker
These works for me.
Also not working for me, this issue is probably better suited for https://github.com/docker/for-mac
Guys Steps to solve
- 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.
Had very similar issue (with docker desktop for mac), restarting docker fixed it.. \o/
@marktopper
- Make new directories /opt/tellform_data/certs and /opt/tellform_data/mongo
- Go to Docker > Preferences > File Sharing
- Add /opt/tellform_data/certs and /opt/tellform_data/mongo
- Restart docker
These works for me.
And don't forget to mention to "chown -R
your mounting the container to a directory that doesn't exist