How do you guys deal with volume permissions in rootless mode in the development environment? #10785
Unanswered
midnight-wonderer
asked this question in
Q&A
Replies: 1 comment 2 replies
-
|
So how did you go around that? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
My Setup
I am on an Ubuntu host machine running
containerdin rootless mode.My objective is to develop an application by editing code using IDEs on the host machine, so I have created a
compose.yamlfile to be used withnerdctl compose, mounting host directories into the container.The Issue
0 (root)in the container.root, the mounted volume becomes unwritable because the owner isroot. This is problematic for files likepackage-lock.json, which must be writable bynpm.My Current Solution
What I Liked
In Lima, they use
reverse-sshfs; everything works seamlessly, includinginotify, and the owner is mapped correctly without disrupting the host machine. Unfortunately, I can't use Lima because I don't have dedicated memory for it; my RAM is insufficient and it's too heavy-weight for my setup.Questions
How do you handle your situation? Do you run containers as
root, or do you use other methods?Beta Was this translation helpful? Give feedback.
All reactions