Skip to content

How to Use onCreateCommand with Root Permissions in VSCode Dev Containers #181

Closed Answered by chrmarti
sikso1892 asked this question in Q&A
Discussion options

You must be logged in to vote

You could install the packages using a Dockerfile. That has the advantage of using Docker's layer cache.

If you have to use onCreateCommand for some reason, you could use sudo by configuring it to work without password (our images come with it preconfigured this way).

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by sikso1892
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants