-
Notifications
You must be signed in to change notification settings - Fork 604
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
bind-mounted directory inaccessible to unprivileged user in container #232
Comments
So far I don't see what's wrong. When making another SSHFS mount from the lima machine back to the host machine (with remote access enabled) with the exact same mount options other users can access it. 🤷 |
@dev-zero could you provide an example? I looked into this as well #231 (comment) |
@AkihiroSuda is this where you execute the bind mount (e.g. Thought I had to change things here Line 51 in 8092199
Please confirm or deny. |
@florianbegusch could you elaborate what kind of example you need? Above I specified the command with the mariadb image from docker.io which should be sufficient to reproduce it? And the |
@dev-zero by "default" unprivileged user you mean uid 1000 (default on most Linuxes)? or 501 (default on most Mac OSes) My default unprivileged user is uid 1000 and I get permission errors on all bind-mounted dirs. Dirs and files are owned by the |
@florianbegusch I have uid 501 for my MacOS user, but also the Linux UID inside the default lima VM is 501. From this user as well as |
@dev-zero
|
Should be fixed in #247 |
can confirm |
When trying to run a mariadb container with a bind-mount for
docker-entrypoint-initdb.d
I get:Indeed there goes something wrong with the sshfuse when running as user other than the container "root":
This is with lima 0.6.3.
The text was updated successfully, but these errors were encountered: