I am practicing for containers in RHCSA, during the practice I tried the below scenario:
**download image from docker hub **
creating a container from the downloaded image
**Committing Container **
**Exporting Container **
**Building the image from the exported file **
**listing images **
**Building a container from httpd1:v1 image **
check the above error :
Error: crun: open executable: Operation not permitted: OCI permission denied
any help on that
I’d try checking two things:
# see if the image indeed is in the local store
podman image ls
# force the image to use the local store
podman container run --pull Never ...
My guess is that podman did not find the image locally and then tried docker.io, or that it went directly to docker.io and did not find an image with that name. OCI is the protocol used to store items in registries like docker hub, which would explain why you are seeing that in an error.
Thank you @rob_kodekloud for your reply, however I found that I have to pass an argument, since export the container will export only the container file system but not argument or commands inside container.
I think if need to run commands during container creation by using Containerfile and specifying the commands need to be executed.
that’s my findings after a lot of troubleshooting.
I would assume that podman supports the “inspect” command, which will likely tell you what those arguments were. Try it it out and see.
Yes podman supports inspect on image and container as well, I will repeat the scenario and put it here