-
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 pod create --infra --infra-image" does not execute entrypoint of the infra-image #2182
Comments
I think at present we force a We should also add a flag to set the command for the infra container - I can see cases where I might want to do a pause container with a full init system running, so I can share the PID namespace in the pod and get proper reaping of dead processes. |
Which reminds me... |
We're already doing that :) |
I love it when I think of things and they're already handled. Nice! |
@sysrich Could you try to modify the entrypoint and see if this changes the behaviour? |
@rhatdan tried - it doesn't change the behaviour
|
I think what I'm requesting is related to the use of the This is currently set to a default of I would like that default to be $entrypoint, then Regardless it should still be overridden by options like |
Open a PR and we can review. |
But that seems reasonable. |
@rhatdan ha! as comfortable as I am poking around your code and pointing at things, I haven't written a single line of |
I think we also might want to look at other things from the image we want to use here - environment variables might be necessary? |
No problem, Matt can look into this. |
I'll take a look at this tomorrow |
@haircommander Since you are mister podman pod, could you check this out? |
@sysrich --infra-command is an option by the way! |
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
In openSUSE land we want to establish our own pause container, and because we have a nice structured way of building and testing containers, we want to use it for our new pause container.
This means that we have a prototype pause rpm package hosted at https://build.opensuse.org/package/view_file/home:favogt:kubix-images/kubic-pause/kubic-pause.spec?expand=1
With a prototype pause container definition at https://build.opensuse.org/package/view_file/home:favogt:kubix-images/kubic-pause-image/config.kiwi?expand=1
coming together to produce registry.opensuse.org/home/favogt/kubix-images/tw/kubic/pause:0.9
As you can see in the .kiwi link, the OCI container has a defined entry-point of
/usr/bin/kubic-pause
However
podman pod create --infra --infra-image registry.opensuse.org/home/favogt/kubix-images/tw/kubic/pause:0.9
produces the following errorIn short, it seems podman is trying to call
/pause
and ignoring the entrypoint of my --infra container.I think this is a bug.
Steps to reproduce the issue:
podman pod create --infra --infra-image
with an OCI image with an entrypoint other than/pause
Describe the results you expected:
Podman should honour the entrypoint defined in it's infra containers
Output of
podman version
:Output of
podman info
:The text was updated successfully, but these errors were encountered: