Azure-Samples / modern-data-warehouse-dataops

DataOps for the Modern Data Warehouse on Microsoft Azure. https://aka.ms/mdw-dataops.
MIT License
570 stars 451 forks source link

Devcontainer in parking sensors sample changes file ownership in linux/wsl #646

Open StromFLIX opened 1 year ago

StromFLIX commented 1 year ago

Description

The devcontainer is currently setup with a root user and mounts the local filesystem. If you then edit or create new files it sets the owner of that file as root, which creates permission errors when editing files in the local linux/wsl environment.

Expected Behavior

No changes in permissions and creating files sets

Reproduce

  1. Clone repository in wsl
  2. Start devcontainer
  3. Create test.file inside container
  4. Try editing file locally in wsl/linux
    touch test.file
    touch: cannot touch 'test.file': Permission denied

image