Skip to content

[Data Science dev containers] Can I connect as root? #3

Closed Locked Answered by benz0li
benz0li asked this question in Q&A
Discussion options

You must be logged in to vote

To connect as root, e.g. modify the devcontainer.json for R base as follows:

diff --git a/.devcontainer/r-base/devcontainer.json b/.devcontainer/r-base/devcontainer.json
index 7f81ce2..571b9e3 100644
--- a/.devcontainer/r-base/devcontainer.json
+++ b/.devcontainer/r-base/devcontainer.json
@@ -85,13 +85,13 @@
        },
 
        // Set 'remoteUser' to 'root' to connect as root instead.
-       "remoteUser": "vscode",
-       "workspaceMount": "source=r-base-home-vscode,target=/home/vscode,type=volume",
-       // "workspaceMount": "source=${localWorkspaceFolder}/.bind-mounts/r-base-home-vscode,target=/home/vscode,type=bind",
-       "workspaceFolder": "/home/vscode"
+       // "remoteUser…

Replies: 0 comments 2 replies

Comment options

benz0li
Jun 27, 2023
Maintainer Author

You must be logged in to vote
0 replies
Comment options

benz0li
Jun 27, 2023
Maintainer Author

You must be logged in to vote
0 replies
Answer selected by benz0li
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested
1 participant