runc icon indicating copy to clipboard operation
runc copied to clipboard

Ubuntu package cri-o-runc has wrong path

Open everflux opened this issue 6 years ago • 7 comments

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.

everflux avatar Jun 12 '18 19:06 everflux

@lsm5 do we ship a runc package for Ubuntu?
Currently buildah relies on the system version of runc.

rhatdan avatar Jun 12 '18 19:06 rhatdan

@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?

lsm5 avatar Jun 12 '18 20:06 lsm5

Would be cool if I can force buildah to use that cri-o-runc, but export the additional PATH did not help.

everflux avatar Jun 12 '18 20:06 everflux

@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.

lsm5 avatar Jun 12 '18 20:06 lsm5

YOu could also use the --runtime flag buildah run --runtime /usr/lib/cri-o-runc/sbin/runc ...

rhatdan avatar Jun 12 '18 20:06 rhatdan

@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

TomSweeneyRedHat avatar Jun 13 '18 17:06 TomSweeneyRedHat

Correct, and this issue triggered it.

rhatdan avatar Jun 14 '18 09:06 rhatdan