-
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
Error: could not get runtime: operation not permitted with stable podman image #3464
Comments
This is a pretty terrible error, regardless of where it's coming from - we need to get this wrapped so we can present a more reasonable explanation as to where it's coming from |
FYI @giuseppe |
we don't have really anything in place in Podman for creating a user namespace when root has limited capabilities. I'd suggest just to use vfs for now, @rhatdan what do you think? |
Yes, I am not really sure of the use case of running podman in a locked down container anyways. |
What about a simple case where you want to push and pull an image, or do any number of things that doesn't involve running a container? Podman is pretty great in this regard. |
Ok, but skopeo would also be good in that category, perhaps better. |
Is this a valid use case? |
True, Skopeo is a better use case for re-tagging and pushing, you're right. In any case, it's quite a confusing error that's not great right off the bat. If you cannot really support podman running in a locked down container it should error with a slightly more informative message! |
@TomSweeneyRedHat PTAL at this, should work. Does this work if podman is used to launch command? |
@rhatdan I'm not 100% sure what you mean by "podman is used to launch command". If I use an installed version of Podman, then
I'm not sure what's up with the system event, that's a new one to me. I think we still need to keep the |
In regards to the soft error prior, there doesn't appear to be a |
In general, several of us not using systemd would appreciate decoupling. |
podman just needs to be compiled without systemd support ... simple as that. |
Shouldn't podman fall back to the non journal method of events, if journal does not exists? Or is this configured in libpod.conf to use the journal? |
We're explicitly configured from |
@TomSweeneyRedHat is right. I think this is related to #3917 .
I also got error with creating libpod directory in /sys/fs/cgroup buildah has |
If @TomSweeneyRedHat changes are in the current When running There is one thing I still wanted to try: adding privileged to the image in my Kubernetes cluster. But using the privileged parameter shouldn't be the solution, should it? |
@rhatdan, got $.02? |
I have been experimenting with running podman within a locked down container, and I have made some progress. Hope to get back to it soon. But the bottom line is for now it can not be done. Hopefully we can fix these up and get it working. I believe it is a solvable problem. But for now you need to run with privileged. |
This issue had no activity for 30 days. In the absence of activity or the "do-not-close" label, the issue will be automatically closed within 7 days. |
We are still working on this. We have gotten it to work, but need to get the container.conf work done to make it a reasonable solution, so that we don't need to include a huge Command line in podman. |
A friendly reminder that this issue had no activity for 30 days. |
The containers.conf work is still on going: #4698 |
Closing in favor of #4131 (they're essentially the same). |
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
Using the
quay.io/podman/stable
image on MacOS or Kubernetes results inError: could not get runtime: operation not permitted
Steps to reproduce the issue:
docker run -it quay.io/podman/stable podman info
Describe the results you received:
Error: could not get runtime: operation not permitted
Describe the results you expected:
It to work
Additional information you deem important (e.g. issue happens only occasionally):
It appears to be an issue with the fuse vfs. If I do
docker run -it quay.io/podman/stable bash
, then execute:Then
podman
no longer exits with the error.Output of
podman version
:Output of
podman info --debug
:The text was updated successfully, but these errors were encountered: