Open Dentrax opened 1 year ago
use-proot
can help with some of this but I still ran into this after:
Dec 2 10:24:36.846 [DEBUG] [arch:x86_64] [cmd:apk] [use-proot:true] [use-qemu:] OK: 10 MiB in 25 packages
Error: failed to build layer image: failed to mutate accounts: chown(3, 4) = chown /tmp/apko-411772834/var/adm: operation not permitted
2022/12/02 10:24:36 error during command execution: failed to build layer image: failed to mutate accounts: chown(3, 4) = chown /tmp/apko-411772834/var/adm: operation not permitted
@kaniini Do you have any thoughts on this? We can get to it if we find a better UX. What about the fail-fast if apko is not running in privileged mode?
To increase the overall UX, maybe enforcing and checking
sudo
mode in the first phase would better. Otherwise we ended up something like the following:cc @developer-guy