for-win icon indicating copy to clipboard operation
for-win copied to clipboard

Permission problem with mounted WSL volumes

Open bbDSA opened this issue 5 years ago • 2 comments

Click these checkboxes after submitting, or place an "x" in them.

  • [X] I have tried with the latest version of Docker Desktop
  • [X] I have tried disabling enabled experimental features
  • [X] I have uploaded Diagnostics
  • Diagnostics ID: 1B13EB19-F014-4350-A5BA-D76CEC9D5885/20210824094057

Actual behavior

I'm using the image balenalib/raspberrypi3:stretch-build to cross compile code for a Raspberry Pi 3 using cmake. When the project is located on a mounted folder I get the following errors:

-- The CXX compiler identification is GNU 6.3.0
-- Detecting CXX compiler ABI info
CMake Error: Remove failed on file: /src/build/CMakeFiles/CMakeTmp/CMakeFiles: System Error: Is a directory
-- Detecting CXX compiler ABI info - done

When moving the project to a folder inside the image (eg. /tmp) the compilation steps work successfully. As an example project I used Nanomsg NG (straight from github).

When using the same constellation (source code and shared folder) with a different container (e.g. debian:stable) the issue does not occur. Thus, it may be related to the QEMU environment used by balenalib/raspberrypi3.

Expected behavior

There is no difference in the behaviour of the debian:stable and balenalib/raspberrypi3 containers and no difference in used the in-container file system or a shared filesysten

Information

Please, help us understand the problem. For instance:

  • Is it reproducible? Yes a container based on the above image should reproduce this

  • Is the problem new? Yes.

  • Did the problem appear with an update? Previous versions of Docker work flawlessly. However, I'm not sure which version broke the scenario, as this use case has not been tested for a while.

  • Windows Version: 21H1 (Build 19043.1165)

  • Docker Desktop Version: 3.6.0 (67351)

  • WSL2 or Hyper-V backend? WSL2

  • Are you running inside a virtualized Windows e.g. on a cloud server or a VM: No

bbDSA avatar Aug 23 '21 13:08 bbDSA

Issues go stale after 90 days of inactivity. Mark the issue as fresh with /remove-lifecycle stale comment. Stale issues will be closed after an additional 30 days of inactivity.

Prevent issues from auto-closing with an /lifecycle frozen comment.

If this issue is safe to close now please do so.

Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows. /lifecycle stale

docker-robott avatar Dec 01 '21 01:12 docker-robott

Closed issues are locked after 30 days of inactivity. This helps our team focus on active issues.

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. /lifecycle locked

docker-robott avatar Jan 30 '22 03:01 docker-robott