-
Notifications
You must be signed in to change notification settings - Fork 121
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
VirtioFS directory sharing has permission errors #6239
Comments
I'm having issues with this too with the postgresql image, it can't modify some files. Switching virtiofs off fixes it. Doing a |
I have same issue. Information
Actual behaviorservices:
db:
container_name: test_mysql8
image: mysql:8
ports:
- '127.0.0.1:3306:3306'
environment:
MYSQL_ROOT_PASSWORD: hoge
MYSQL_DATABASE: testdb
volumes:
- './volumes/mysql/mysqldata:/var/lib/mysql'
networks:
default:
name: test-net
Switching virtiofs off or delete "volumes" section, fixes it. |
I believe I'm having the same issue, I've documented it as follows with some quick reproducible steps - #6243 |
On fresh installs like MariaDB I have similar permission error
I don't now why, but this solves the issue |
Just got bitten by this myself. Had to disable VirtioFS for now. |
@ALL; Please visit the link mentioned below. I don't think this release has been officially released, however I just tried it and my permission issues seem to be fixed with this release. I started out with clearing/purging all Docker data, starting from scratch. |
I also have experienced this same issue with npm / yarn. Also with composer. All work fine with virtio FS disabled but so slow. |
This does fix the issue for me, thanks! |
Closed issues are locked after 30 days of inactivity. If you have found a problem that seems similar to this, please open a new issue. Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows. |
Expected behavior
I started docker with the new
VirtioFS accelerated directory sharing
enabled. I would have expected I can runnpm ci
the same way as I can without the optionVirtioFS accelerated directory sharing
enabled.NPM (installed for the current user) should have permissions to install dependencies in a directory that belongs to the current user.
Actual behavior
When expirimental option
VirtioFS accelerated directory sharing
is enabled I cannot runnpm ci
anymore.As far as NPM is concerned the working directory does not have correct permissions to install dependencies. I can however still manually edit files using vim. NPM simply refuses to install dependencies.
NPM error log when expirimental option
VirtioFS accelerated directory sharing
is enabled:2022-03-18T11_34_31_175Z-debug-0.log
Information
I have a container in which I run my (Node) projects. Whenever I enable the expirimental option
VirtioFS accelerated directory sharing
I cannot runnpm ci
anymore.If I shutdown my container, disable the expirimental option
VirtioFS accelerated directory sharing
, restart docker and restart the very same container, I can once again successfully usenpm ci
to install deps.the issue is reproducable by simply enabling the expirimental option
VirtioFS accelerated directory sharing
again and NPM will stop working. (npm ci
will work once again after I disable the expirimental optionVirtioFS accelerated directory sharing
).Diagnistoc output
(the diagnostic output is exactly the same whenever the expirimental option
VirtioFS accelerated directory sharing
is enabled or disabled. it doesn't matter for the diagnostics)A readable of the diagnostic output attached as an image
docker diagnostics.txt
Steps to reproduce the behavior
See
Information
The text was updated successfully, but these errors were encountered: