-
Notifications
You must be signed in to change notification settings - Fork 649
The container exits immediately with operation not permitted error #342
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
Comments
What is the specific permission error, and what are the This looks to be an issue with your environment or perhaps volumes you're mounting in the container with improper permissions. |
@wglambert
Does the docker not fully support mounting for MacOS? Thanks a lot @wglambert ! |
Here's the progress what I've been working on this so far. Issue
Solution (a bit naive)
This solution works only in macOS, but not in ubuntu.. |
Docker for Mac/Windows use Virtualbox to run Docker. And Vbox has a bug with shared folders, which Docker utilizes for host->container volume mounting if it's in Vbox. |
@wglambert is correct; even if you are using Docker for Mac (and thus xhyve instead of VirtualBox), you will still have problems that the shared file system from VM to Host does not support everything that MongoDB needs to run like fsync on directories or note: I have no idea why your mongo/4.0/docker-entrypoint.sh Line 14 in 86974ba
|
Like @wglambert said, using named volumes sorts out this issue. Thanks for all your help 👍 |
I've been trying to run mongodb docker by shelljs.
In a shelljs script to exceute shell script has codes to create multiple docker containers including mongodb
But, there's a permission error after creating multiple other dockers.
Checking what was happening in the docker is literally impossible since mongodb is exits immediately..
But, if I restart the exited container again in terminal, it works fine and read/write from another container is totally fine..
Here's entire logs about this issue.
The text was updated successfully, but these errors were encountered: