-
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
events API docker compatibility issue #16857
Comments
@chilikk thanks for reaching out. Do I read the issue correctly that Podman should support "die" as an event input? |
Yes, this is correct. |
Map "die" to the "died" status for Docker compat. Fixes: containers#16857 Signed-off-by: Valentin Rothberg <vrothberg@redhat.com>
Map "die" to the "died" status for Docker compat. Fixes: containers#16857 Signed-off-by: Valentin Rothberg <vrothberg@redhat.com>
Map "die" to the "died" status for Docker compat. Fixes: containers#16857 Signed-off-by: Valentin Rothberg <vrothberg@redhat.com>
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
Podman expects the podman-style "died" name of the event rather than docker-style "die" event in an event filter expression. This is a compatibility issue with docker-compatible clients.
Steps to reproduce the issue:
Start a container sleeping for a short period of time
Subscribe to events using Docker compatibility API, indicating the following filter
{"event":["die"]}
and observe the absence of events.To compare with a working case, repeat steps 1 and 2 substituting the filter for
{"event": ["died"]}
and observe the event calleddie
when the container in step 1 finishes.In form of script, steps 1 and 2 (using docker-style event name):
Using podman-style event name:
Describe the results you received:
No event arrives in step 2 of the reproduction example.
Describe the results you expected:
I expected to see the "die" event from step 2 in the reproduction example:
Additional information you deem important (e.g. issue happens only occasionally):
I think both
die
anddied
should be supported in a filter expression, for backwards compatibility with previous Podman versions.Output of
podman version
:Output of
podman info
:Package info (e.g. output of
rpm -q podman
orapt list podman
orbrew info podman
):Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide?
Yes
Additional environment details (AWS, VirtualBox, physical, etc.):
The text was updated successfully, but these errors were encountered: