-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
docker mkdir: cannot create directory ‘/data/db’: Permission denied #10827
Comments
Same error as @DriftingShadows. I have tried several times. Always get this error:
I have checked the permissions of the folders (with
My version of OS and docker:
I have tried:
Maybe someone can help us solve this problem. That would be great. Thanks for your help! |
hi! |
I solved the issue. It was related to user namespaces. It seems to be enabled by default when installing docker desktop on ubuntu. For eg. I would need to set permission on host to be 100798 to get 799 ownership in the container. |
👍 |
Describe the bug
On a clean Ubuntu install of 24.04, the following error is shown in the docker logs after following the instructions at here.
To Reproduce
Steps to reproduce the behavior:
Additional context
Please feel free to add any other context about the problem here.
This issue only occurs when using the mounted volumes for data and logs. I have done the chown -R 799:799 for both folders. I have also followed these instructions. When executing ls -lh to view permissions for the /data folder in the container, it shows the following
The text was updated successfully, but these errors were encountered: