-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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 produces "SHELL is not supported for OCI image format" #8477
Comments
You can use the --format docker flag, to support this option. This option did not make it into the OCI specification. |
If you use buildah bud, you would get this message. |
Great. I did not know about the |
Is there some kind of alternative to the SHELL command with OCI containers? I would like to build an OCI image but I don't really know how to transition. |
I can't find any documentation on what the I think it may be similar to the |
I tried building with |
I believe |
@mheon I am late to this, but the Is there a OCI alternative to this? the closest equivalent would be |
How to request this feature in OCI? |
@mheon sorry for the ping but I came across this same issue and researched it a bit. I've found some info in Dockerfile reference. It seems like it's used to reduce the number of arguments for My assumption is that since Docker images are already built (I'm using one for example) and using them as a base image won't affect their contents (since they are already built), podman and buildah are just warning users that some image (in my case a base image) is built with those unsupported instructions. If a user would want to have the same behavior of the |
Podman appears to parse the [SHELL] in the Dockerfile differently as compared to Docker. Using --format docker allows supporting this. From: containers/podman#8477
Hi there,
I have Dockerfiles containing the command
for setting the default shell to bash.
When I try to build images from said Dockerfiles with podman version 2.1.1, I get the error message:
"SHELL is not supported for OCI image format".
What should I do? Do I have to modify the Dockerfiles or is there another way to do this? I thought podman was a drop-in replacement for docker. Am I missing something or doing something wrong?
The text was updated successfully, but these errors were encountered: