runc
runc copied to clipboard
Ubuntu package cri-o-runc has wrong path
When trying to use buildah to build an image using the PPA packages for ubuntu, the "runc" comand is not found and the build aborts.
The cri-o-runc package contains the runc executable, but at /usr/lib/cri-o-runc/sbin/runc
which is not in the PATH.
Linking is a workaround
sudo ln -s /usr/lib/cri-o-runc/sbin/runc /usr/local/sbin
but please place the runc command in the proper place.
@lsm5 do we ship a runc package for Ubuntu?
Currently buildah relies on the system version of runc.
@rhatdan yes it's called 'cri-o-runc'.
@everflux we don't want to conflict with distro's own runc, so that's why the non-standard location.
@TomSweeneyRedHat didn't we fix this already? Or was this issue forgotten?
Would be cool if I can force buildah to use that cri-o-runc, but export the additional PATH did not help.
@everflux I'll look up my build files in a bit, and will get it fixed there if doable, else @TomSweeneyRedHat might need to step in.
YOu could also use the --runtime flag buildah run --runtime /usr/lib/cri-o-runc/sbin/runc ...
@lsm5 whack me up side the head as necessary, I think this one we had a number of discussions on and then we both got distracted by other issues. In addition to the flag, @rhatdan also setup an env variable that can be used: BUILDAH_RUNTIME. That's just made its way into GitHub with https://github.com/projectatomic/buildah/pull/786
Correct, and this issue triggered it.