This repository was archived by the owner on Nov 2, 2024. It is now read-only.
Is there an easy way to edit the container config before the first container start? #2092
Unanswered
ChrisLuck
asked this question in
Help Needed
Replies: 2 comments 1 reply
-
The answer I found so far is "No". But I found a different solution for my idmap problem:
NOTE:
|
Beta Was this translation helpful? Give feedback.
0 replies
-
I don't feel like it needs to be done before the container is first started. To me the order would be:
|
Beta Was this translation helpful? Give feedback.
1 reply
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.
-
I am trying to create a setup where multiple containers are sharing data via bindmounts as explained in "Method 2" on this page:
https://www.itsembedded.com/sysadmin/proxmox_bind_unprivileged_lxc/
To do so, the uid and gid mapping has to be added to the container's config file.
The tricky part is, that this has to be done before the container is started for the first time otherwise the new mapping can screw up the ownership of already created files.
Is there an easy way to edit the container config before the first container start?
One solution for me would be to "localize" the scripts so that I could clone, edit and execute the local versions.
Can the scripts somehow be easily "localized"? (That would have to replace all github curls with relative paths)
Note:
I am aware of this post which does something similar: #2044
This post should run into the same problem if there are preexisting files for the remapped users/groups.
Beta Was this translation helpful? Give feedback.
All reactions