-
Notifications
You must be signed in to change notification settings - Fork 794
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
buildah mount
fails in buildah container (fuse-overlayfs?)
#5976
Comments
I'm hitting this error path in containers/buildah#5976 and it was not obvious to me which bit of code was failing. Add an error prefix so it's easy to find. Signed-off-by: Colin Walters <[email protected]>
OK, I think I narrowed in on this. It works if I create a new user+mounts via e.g. But in this scenario by default But that said, ISTM we could just skip doing this mount (there's even an option for it via OK, dunno hmm, I guess we can just add something to the man page about this? There's already things related to rootless that are similar. Tangentially related, wow
Wait we failed to create a memfd?? 🤔 Must be related to seccomp? A quick strace shows:
Heh no the real problem is it looks like we enter some sort of endless loop if we fail to create a userns, and then try to create a memfd that exceeds NAME_MAX of 255 bytes. |
I'm trying to build on coreos/rpm-ostree#5268 to have it support being run in the same setup as the buildah container, which is widely used for nested builds (container-in-container).
In the end I don't actually need
mount
here necessarily; we could also copy the image to an OCI and operate, but I'd like to avoid another copy.I haven't looked at the code here but I think this is also related to containers/podman#25241 in that the "mount" logic is different from the "run" flow.
The text was updated successfully, but these errors were encountered: