You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What happened?
When I specify a remoteUser and containerUser in my devcontainer.json the devpod mounts the project files as root
Once the project loads, when I ls the folder structure is mounted as root
Actual
.rwxrwxrwx 5.6k root 14 Jan 22:09 CODE_OF_CONDUCT.md
.rwxrwxrwx 306 root 14 Jan 22:09 CONTRIBUTING.md
drwxrwxrwx - root 14 Jan 22:09 documentation
.rwxrwxrwx 1.1k root 14 Jan 22:09 LICENSE
.rwxrwxrwx 8.9k root 14 Jan 22:09 NUGET.md
.rwxrwxrwx 4.2k root 14 Jan 22:09 OpenGraphNet.sln
.rwxrwxrwx 1.0k root 14 Jan 22:09 OpenGraphNet.sln.DotSettings
.rwxrwxrwx 47k root 14 Jan 22:09 package-lock.json
.rwxrwxrwx 1.4k root 14 Jan 22:09 package.json
.rwxrwxrwx 11k root 14 Jan 22:09 README.md
drwxrwxrwx - root 14 Jan 22:09 src
drwxrwxrwx - root 14 Jan 22:09 tests
What did you expect to happen instead?
I would expect that the files would be owned by the user specified in my devcontainer.json file:
Expected
.rwxrwxrwx 5.6k vscode14 Jan 22:09 CODE_OF_CONDUCT.md
.rwxrwxrwx 306 vscode14 Jan 22:09 CONTRIBUTING.md
drwxrwxrwx - vscode14 Jan 22:09 documentation
.rwxrwxrwx 1.1k vscode14 Jan 22:09 LICENSE
.rwxrwxrwx 8.9k vscode14 Jan 22:09 NUGET.md
.rwxrwxrwx 4.2k vscode14 Jan 22:09 OpenGraphNet.sln
.rwxrwxrwx 1.0k vscode14 Jan 22:09 OpenGraphNet.sln.DotSettings
.rwxrwxrwx 47k vscode14 Jan 22:09 package-lock.json
.rwxrwxrwx 1.4k vscode14 Jan 22:09 package.json
.rwxrwxrwx 11k vscode14 Jan 22:09 README.md
drwxrwxrwx - vscode 14 Jan 22:09 src
drwxrwxrwx - vscode 14 Jan 22:09 tests
How can we reproduce the bug? (as minimally and precisely as possible)
You can use my public project on GitHub as an example: https://github.com/ghorsey/OpenGraph-Net
ghorsey
changed the title
Opening a DevPod on Windows mounts the project folders as root despite remoteUser and containerUser settings.
Opening a DevPod in Docker on Windows mounts the project folders as root despite remoteUser and containerUser settings.
Jan 15, 2025
What happened?
When I specify a
remoteUser
andcontainerUser
in mydevcontainer.json
the devpod mounts the project files asroot
Once the project loads, when I
ls
the folder structure is mounted asroot
Actual
What did you expect to happen instead?
I would expect that the files would be owned by the user specified in my devcontainer.json file:
Expected
How can we reproduce the bug? (as minimally and precisely as possible)
You can use my public project on GitHub as an example: https://github.com/ghorsey/OpenGraph-Net
My
devcontainer.json
:Local Environment:
v0.6.9
DevPod Provider:
Anything else we need to know?
If I directly open the devcontainer (not utilizing DevPod) in WSL the folders mount correctly:
If I directly open the devcontainer (not utilizing DevPod) in Windows/Powershell the folders mount correctly:
It appears this problem only occurs when opening the DevPod and not when directly opening the dev container in Windows, or WSL2!
The text was updated successfully, but these errors were encountered: