-
Notifications
You must be signed in to change notification settings - Fork 315
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
git 'dubious permissions' issues when bind-mounting source code from Windows filesystem #10736
Comments
Please append the Dev Containers log from when this happens after you rebuild the container (or created a new one). ( Also in #8656. |
Log file here:
#8656 mentions workspaces specifically, I'm seeing the issue outside of workspaces as well. |
We compare Could you check whet you get for these? We could also use Are you running VS Code with your regular user account? |
When the repository is cloned to the Windows filesystem and bind-mounted to the dev container workspace, Docker mounts the volume with all files having root:root rwxrwxrwx permissions.
This causes all calls to
git
in the dev container to fail immediately due to a dubious permissions error, as described here.The workaround/fix is to call
git config --global --add safe.directory "$(pwd)"
as a post-create command.Steps to Reproduce:
git status
Does this issue occur when you try this locally?: No
Does this issue occur when you try this locally and all extensions are disabled?: Yes
The text was updated successfully, but these errors were encountered: