I have some tests for which I require a container runtime, maybe someone already played around with this concept and I could copy-paste something instead of investigating it myself, it requires some nix daemon tweaks (assuming it’s even possible)
Out of the box I am getting this error:
error: builder for '/nix/store/kav1krs46nj1vala5fxq6yy9qiy04wc3-test-script.drv' failed with exit code 1;
last 7 log lines:
> Copy to podman image bash:vwdysbiik7x1n5gf9nkcdl96khqyjh6c
> WARN[0000] Reading allowed ID mappings: reading subuid mappings for user "nixbld" and subgid mappings for group "nixbld": open /etc/subuid: no such file or directory
> WARN[0000] Found no UID ranges set aside for user "nixbld" in /etc/subuid.
> WARN[0000] Found no GID ranges set aside for user "nixbld" in /etc/subgid.
> Error: error writing "allow" to setgroups: write /proc/16/setgroups: operation not permitted
> ERRO[0000] opening "allow" to /proc/16/setgroups: write /proc/16/setgroups: operation not permitted
> ERRO[0000] (Unable to determine exit status)
For full logs, run 'nix log /nix/store/kav1krs46nj1vala5fxq6yy9qiy04wc3-test-script.drv'.
As workaround, I am using writeShellScriptBin
and nix run
ing it