-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Unprivileged podman inside docker: No such file or directory: OCI not found #10321
Comments
This message is coming from crun. Not sure why, but we have seen problems like this in the past. |
Overlay on top of overlay so we skip the mount in the inner container? Can you make sure /var/lib/containers is a bind mount and it is not on overlay? |
@giuseppe on the host docker container,
In the guest podman container (as I'm not entirely sure which one you're asking about),
|
Add a bind mount from the host into the container. mkdir /var/lib/mycontainer Then when you run podman within the container, it will use /var/lib/containers that is not on an overlay file system. |
@rhatdan thanks, I've added the bind mount to our workflow: https://github.com/lukash/ci-dnf-stack/blob/54c049d9936b0fcaa0307862c5fa657558cbf839/.github/workflows/ci.yml#L43 And verified that in the outer docker container the directory is not on the overlay anymore:
Looked promising for a few days, but today the bug has hit again: https://github.com/rpm-software-management/ci-dnf-stack/runs/2655353414 (search for "OCI" in the upper right hand corner, this time there are three of them) |
We have just published https://www.redhat.com/sysadmin/podman-inside-container Please read these and see if they help solve your problem. Reopen if you need more information. |
No need to re-open this issue; however to add information about another case where this is reproducible: A
|
Thank you @rhatdan. It seems we have stopped seeing the errors in the meantime (the history is lost when we re-run a GitHub Actions job so I can't find exactly when). If it starts happening again I'll try to bring over the configuration described in the blog post to see what helps. |
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
We are using nested unprivileged podman containers inside docker containers in GitHub Actions on the DNF project. Podman occasionally fails with the following error in that environment:
Note
behave
is a Python test framework. I've also seen the error happen with other executables, likechown
.Here's a failed run.
Here's the action that runs podman. (the
parallel ...
command on the last line executescontainer-test
, a wrapper script that executespodman run ... behave ...
)I know this is a very complex setup, I'm trying to create a local reproducer, but so far am stuck on running nested podman inside docker:
Any advice on how to proceed with resolving this is very welcome.
Steps to reproduce the issue:
Wish I had those.
Describe the results you received:
Describe the results you expected:
No error.
Additional information you deem important (e.g. issue happens only occasionally):
Happens occasionally, initially it seemed somewhat rare but the frequency seems to be increasing to the point it's very annoying to keep re-running the CI jobs.
Output of
podman version
:Output of
podman info --debug
:Package info (e.g. output of
rpm -q podman
orapt list podman
):Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide? (https://github.com/containers/podman/blob/master/troubleshooting.md)
Using latest podman in F34 and yes.
Additional environment details (AWS, VirtualBox, physical, etc.):
Fedora 34 inside docker in GitHub Actions.
The text was updated successfully, but these errors were encountered: