Skip to content

Commit

Permalink
Explicitly set the user to vscode in Dev Container
Browse files Browse the repository at this point in the history
The ruby image installs ruby for the vscode user (which is created in the debian base image). Vscode uses this user by default. However, other dev container implementations may not do that, in which case the dev container may open as root where ruby is not available. So let's explicitly set the user in the devcontainer.json.
  • Loading branch information
andrewn617 committed Sep 30, 2024
1 parent 1b8b2b0 commit 3d297cd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
// "customizations": {},

// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "root",
"remoteUser": "vscode",

<%- if !mounts.empty? -%>
"mounts": [
Expand Down

0 comments on commit 3d297cd

Please sign in to comment.