On Sunday, 26 April 2020 12:14:25 AM AEST Tomas Janousek wrote:
> Debian installs runc as /usr/sbin/runc, and regular users don't have
> /usr/sbin in $PATH, so "buildah run" without "--runtime /usr/sbin/runc"
> fails:
> 
>     $ buildah run debian-working-container -- sh
>     error running container: error creating container for [/bin/sh]: :
> exec: "runc": executable file not found in $PATH ERRO exit status 1

Interesting. Thanks. Perhaps we should hard-code path to "runc" in "util/
types.go". 

Documentation suggests to set path to runtime in the BUILDAH_RUNTIME 
environment variable:

  export BUILDAH_RUNTIME=/usr/bin/crun


With cgroups_v2 You should be able to use "crun" instead of "runc".
"crun" is the first alternative that is expected to work "out of the box".


> I'd expect this to work out of the box.

I'm not sure it can be done because of requirement to set 
"kernel.unprivileged_userns_clone=1".

-- 
All the best,
 Dmitry Smirnov.

---

It has become appallingly obvious that our technology has exceeded our 
humanity.
        -- Albert Einstein

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to