events API docker compatibility issue #16857
Labels
kind/bug
Categorizes issue or PR as related to a bug.
locked - please file new issue/PR
Assist humans wanting to comment on an old issue or PR with locked comments.
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: