-
Notifications
You must be signed in to change notification settings - Fork 786
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Podman build fails: runc not installed by default #1754
Comments
@lsm5 PTAL |
@nalind @TomSweeneyRedHat is buildah configured to use runc at |
buildah is currently not a dependency for podman, @nalind and @TomSweeneyRedHat can correct me if I'm wrong, but buildah code gets vendored into podman. @lukengda buildah and podman worked fine for you after you installed ubuntu's default runc package, yes? Could you please confirm if you already had the |
@vrothberg could you plesae create labels 'ubuntu' and 'packaging' and assign this to me? |
yes, the build worked fine after i installed As podman and buildah have the # apt-cache depends buildah
buildah
Depends: cri-o-runc
Depends: libgpgme11
Depends: libseccomp2
Depends: containers-common
Depends: uidmap
# apt-cache depends podman
podman
Depends: libseccomp2
Depends: libdevmapper1.02.1
Depends: libgpgme11
Depends: conmon
Depends: containers-common
Depends: cri-o-runc
Recommends: slirp4netns
Recommends: containernetworking-plugins
Recommends: uidmap |
I can reproduce it (for now): with the removal of runc the build fails again. |
@lsm5 I'll let @nalind correct me, but I'm not seeing us pointing to runc in a particular location within our code. So I think we're just looking for it based on the defined $PATH, generally /usr/bin/runc. Can we change the path to /sbin/runc or is the problem that we need one variant of runc and some other package needs another? |
Any reason we need it at all for building the package? It is only needed for tests? I would like to get to the point where we could easily substitute crun. Perhaps we should make buildah and podman require an ociruntime, and then make runc and crun packages provide an ociruntime. |
So, prior reason for packaging @rhatdan @giuseppe should I give crun a try as a runc replacement on ubuntu? Any recommended tests before I can ship it? |
I think the last time we needed a minimum runc version, it was v1.0.0-rc4, and bionic currently installs v1.0.0-rc7, so we should be fine using the distro-provided one. |
I wanted to care about the runc version on Ubuntu xenial. Because xenial is the latest Ubuntu used for Travis CI. As the runc version is also v1.0.0-rc7 on xenial, it looks good. https://packages.ubuntu.com/xenial/runc |
Workarounds:
I'm leaning towards option 3 for now since it's the cleanest. Questions:
|
I don't believe we have this issue any longer, reopen if I am mistaken. |
Description
I am trying to build an image based on a debian image. The minimal Dockerfile i used to reproduce the error is the following:
Steps to reproduce the issue:
Describe the results you received:
The output is the following:
This is the same picture as in #1309.
podman run -it --rm debian:buster sh
works without like a charm, commands in the interactive shell are processed fine.I installed buildah manually and tried again. runc was not installed as a dependency of buildah. After i installed runc directly, the build worked.
What is the podman default installation setup? Is the buildah package not installed by default with a podman installation? Should runc be installed by default if you install buildah?
Describe the results you expected:
This minimal image should build without any problems without having to manually install additional dependencies.
I hope this is the correct place to report the issue I have...
Output of
rpm -q buildah
orapt list buildah
:Output of
buildah version
:Output of
podman version
if reporting apodman build
issue:Output of
cat /etc/*release
:Output of
uname -a
:Output of
cat /etc/containers/storage.conf
:The text was updated successfully, but these errors were encountered: