bundle install fails within a ruby devcontainer due to permissions issues #76
Answered
by
samruddhikhandale
AlexChesser
asked this question in
Q&A
-
I expect that I'm actually doing this wrong, but I'm trying to launch a devcontainer and am hitting a wall here. The following dockerfile builds fine
if I try to log in as the vscode user and run something like "gem install rails" I get a permissions error
Is there some sort of "magic" end users have to do to ensure their vscode user has permissions to execute development commands? |
Beta Was this translation helpful? Give feedback.
Answered by
samruddhikhandale
Oct 18, 2023
Replies: 1 comment 1 reply
-
Hi 👋 Can you try adding 👇 at the end of your Dockerfile?
Then, you should be able to install gems with |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
AlexChesser
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi 👋
Can you try adding 👇 at the end of your Dockerfile?
Then, you should be able to install gems with
su vscode -c "gem install <your-gem-names-here>"