-
Notifications
You must be signed in to change notification settings - Fork 118
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
Permissions issue with VirtioFS #6614
Comments
Still testing this, but might be related to what the OP is experiencing: since updating to 4.15, when I |
Thanks for reporting; I just hit this issue myself; I'm discussing with the team working on VirtioFS, and they're looking into it. |
Same here. For some reason all files inside my devcontainer are now marked as executable after a |
Same here, rolling back to 4.14.1 solves the problem |
Short update; I see a patch is being worked on to fix this (but not finished yet); from the description, it looks like there may be a bug on Apple's side, but we're looking at a workaround until that's fixed. |
I can also confirm this issue. It's really creating havoc while working in a VSCode devcontainer. Files randomly reset their permissions from 0644 to 0755 in the container. Then if try to run a |
Switched back to "gRPC FUSE" for now. Seems like a good enough work around until a fix is in place. |
Hey there, this build no longer sets the executable bit on your volume files : |
@abentele note that this executable bit issue is different for the issue you're facing. Investigation continues. |
@fredericdalleau my team experienced the same problem with permissions in dev container on 4.15. The build that you've linked resolves the problem for us 👍 Is this likely to be released soon? |
@oinopion thanks for feedback, it should land in our next release early next year |
@fredericdalleau Thanks a lot for this Docker build! |
4.16 preview works like a charm on my system, thank you for that. 👍 |
Closing this issue because a fix has been released in Docker Desktop 4.16. See the release notes for more details. |
Sadly we are still having issues with 4.16.1 over at https://github.com/lando/lando which is unfortunate because our users definitely crave being able to use VirtioFS. 4.16.1 produces breaking behavior because it does not mount our boot up entrypoint scripts with the same permissions they have on the host. This is what the perms look like for our scripts. Is this intentional?
|
Can confirm issues with 4.16.1 as well. We're building protobuf files on a host-mounted volume which results in temp files with no permissions (which ultimately leads to a proto build failure):
|
@pirog, can you share what command you used to get this result? |
@fredericdalleau sadly i cannot! I reset Docker Desktop to factory defaults and rebooted my computer and now it seems to work as expected. At least for me. Does that make any sense to you? |
You may need to reenable virtiofs as it not default. If it happens again, you can try on the host : |
@fredericdalleau good to know. We have some users reporting the same initial no-perms behavior so i'm going to walk through it with a few of them and hopefully i'll be able to track things down a bit better for you all. |
docker desktop for mac 4.17.0 (99724), the problem is still. |
Still seeing this issue |
I also got some permission problems when running Kibana and Elastic with docker-compose:
Switching off
Maybe this also applies to others here? |
Docker Desktop 4.23.0 (120376) on Intel MacOS Ventura 13.5.1 Use Virtualization framework making Segment fault Error 139 for React on Rails - shakapacker
|
I just got the heads-up of the upgrade and now I am scared of going further. |
I think I'm running into this issue as well -- Desktop 4.23.0 on MacOS Sonoma 14.0 (was also happening on Ventura) on M1. I run a container that bind-mounts my When VirtioFS is enabled, it appears to be creating the lockfile with no/invalid permissions bits: ls -l output from inside the container:
ls -l output from the host system:
Then something (likely removal of the lockfile) fails with a permission denied error. When the file sharing implementation is switched to gRPC FUSE, it works correctly. |
Still seeing this permissions issue only when VirtioFS is enabled when trying to add node as a composer dependency to my Lando project. Node is added by
|
An easy way to reproduce is to try and run gitlab under virtio:
After the setup process completes, you'll find postgres logs in
|
Using OrbStack does solve these issues for me. It's much faster then Docker Desktop too. http://orbstack.dev |
I just tried it. |
Hello there, it has been more than a year with this bug. From release 4.14 to 4.27. gRPC FUSE is much slower than VirtioFS... Any news on the issue? |
This is also reproducible with Docker Mailserver https://docker-mailserver.github.io/docker-mailserver/latest/ Apple Silicon Mac, Docker Desktop 4.29.0 |
docker/for-mac#6614 causes tests to fail when Docker is configured to use the VirtioFS for sharing instead of gRPC FUSE. It appears that Docker has the nasty habit of forgetting our selection when we apply an update to Docker Desktop, so we have to keep checking and re-applying our choice.
That was back in 2022. Are they still looking into it? Or have they decided this isn't a very important bug, and moved on to other things? |
imagine having mac minis as amazing servers which consume almost no power. But docker still hangs years back. |
Interesting, I just tried to reproduce this again and was unable to in two separate tests with VirtioFS enabled.
|
I just upgraded to 4.34.3 (Docker engine 27.2.0, build 3ab4256) and repeatedly ran a phpunit Drupal test which passes every single time using gRPC FUSE and fails every single time with VirtioFS. So we're still not out of the woods, it seems.
|
Thanks for confirming, I'll try to figure out an explanation for how mine is working. For what it's worth we were running into an issue with |
- [x] Switch to `docker-compose.yml` instead of `Dockerfile` for dev container setup, - [x] Sets up minio s3 emulator via docker container, - [x] Got rid of `dotenvy` crate dependency as we export env vars from .env file both at ci and dev container, - [x] Add `CONTRIBUTING.md`. NOTE: for macOS users that have unexpected permission errors, you can switch from `virtiofs` into `gRPC fuse` container file sharing implementation. There are sometimes issues with permissions with virtiofs. (see issue docker/for-mac#6614 (comment)) Closes #58
Summary / Steps to reproduce
I started a gitlab container with docker compose.
This container has a volume:
what I did in the running container (note the commands access a sub-folder of the volume):
Expected behavior
I would expect the permissions of this folder are as set by the chmod command before:
Therefore the output of the stat command should be:
Actual behavior
output of the stat command with setting "gRPC FUSE" of Docker Desktop (this is ok):
output of the stat command with setting "VirtioFS" of Docker Desktop (this is wrong!):
Btw.: gitlab fails on startup because of this issue.
Information
The problem should be reproducible with any other container.
The problem is since I switched my settings to VirtioFS. With setting gRPC FUSE it works.
Output of
/Applications/Docker.app/Contents/MacOS/com.docker.diagnose check
Steps to reproduce the behavior
See above.
The text was updated successfully, but these errors were encountered: