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
I installed Docker Community Edition and followed the official Docker documentation for running in rootless mode (https://docs.docker.com/engine/security/rootless/). I then attempted to add a devcontainer to my repository. Everything works, except all of the files inside the container (under /workspaces) appear to be mounted and owned as root, which means unless I set remoteUser to root, I cannot make any changes. How can I get VSCode/devcontainers to mount the files as the same vscode user that it uses inside the container? Setting the containerUser property did not work.
VS Code version: Code 1.96.2 (fabdb6a, 2024-12-19T10:22:47.216Z)
OS version: Linux x64 6.11.0-13-generic snap
Modes:
System Info
Item
Value
CPUs
AMD Ryzen 7 2700X Eight-Core Processor (16 x 4141)
Note how I have to specify "remoteUser": "root" in devcontainer.json because all the files inside the container get mounted as root. I want to change how /workspaces is mounted so I don't have to do this.
Type: Bug
I installed Docker Community Edition and followed the official Docker documentation for running in rootless mode (https://docs.docker.com/engine/security/rootless/). I then attempted to add a devcontainer to my repository. Everything works, except all of the files inside the container (under /workspaces) appear to be mounted and owned as root, which means unless I set remoteUser to root, I cannot make any changes. How can I get VSCode/devcontainers to mount the files as the same vscode user that it uses inside the container? Setting the containerUser property did not work.
VS Code version: Code 1.96.2 (fabdb6a, 2024-12-19T10:22:47.216Z)
OS version: Linux x64 6.11.0-13-generic snap
Modes:
System Info
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: disabled_software
multiple_raster_threads: enabled_on
opengl: disabled_off
rasterization: disabled_software
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: disabled_software
video_encode: disabled_software
vulkan: disabled_off
webgl: unavailable_software
webgl2: unavailable_software
webgpu: disabled_off
webnn: unavailable_software
Extensions (16)
A/B Experiments
The text was updated successfully, but these errors were encountered: