-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Equivalent of fakeRootCommands / enableFakechroot? #134
Comments
This is actually possible with nix2container without using fakeroot because the If a use case cannot be covered by this feature, a PR allowing to create layers with fakeroot would be welcomed. |
Thank you. That looks useful, but I think the main utility of
I have thought about how this would work for a bit. In Maybe the |
Another usecase for running something as root is |
@ulrikstrid Setting xattrs file attributes (this is what is done by |
Interesting, I can look at this in the coming days when I have some time. Where would I add this to the project? |
I spent some time between tasks today to see if I could figure it out, see #156 for progress, would love some feedback or pointers. |
Hi, is there any equivalent for these attrs from nixpkgs dockerTools?
The use case for these is to build layers (well, top layer) which have file attributes (permissions, ownership) that can't be set on files in the Nix store, i.e. things like setuid executables, or run commands that can only operate on the current system (
/
), such asuseradd
.The way it works there is to run the user specified command under some combination of
fakeroot
/fakechroot
/proot
, and then create a tarball capturing that information while still inside the emulated process space. The tarball then represents the image layer.Thanks!
The text was updated successfully, but these errors were encountered: