-
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 events different than docker events #14993
Comments
I believe we should make them consistent if possible. |
The status for removing an image (remove for us, delete for Docker) is concerning. I don't think we can change that. Maybe only for the compat API? |
The We also need to make an extra Untag event for images when removing but that's easy. |
Couldn't we add the fields ID and delete in addition to the fields we have for better compatibility? |
I don't think we can change remove vs delete - that's a single field (Status) that we are populating differently from Docker. Adding an |
The time and timenano should be fixed, We should be returning computer readable time rather then human time. |
Hi @rhatdan , I am new to podman , could you please assign this issue to me . I would be happy to work on it. |
Thanks, @adhishmeena ! |
Welcome @adhishmeena |
You need to run Podman commands to generate events that will be displayed. or use the |
Thank you @mheon |
@rhatdan , would you please give some more clarity on computer readable time ? |
Currently the events should be reported in EPOCH time (Total seconds since 1970) rather then being displayed in human readable format. |
Thank you @rhatdan |
@mheon PTAL |
It's hard to tell without having a proper diff - I recommend opening a PR, we can review the changes there |
Agree , I have raised PR . Please review. |
A friendly reminder that this issue had no activity for 30 days. |
@adhishmeena Do you have a link to the PR? Is this still in progress? |
Can you please share doc for local setup of podman? |
A friendly reminder that this issue had no activity for 30 days. |
Hi @rhatdan , I saw that this issue isn't active at the moment, can I work on it? Thanks |
Yes |
Hi @rhatdan , I have created a PR for this issue, appreciate if you could review it, thanks! |
- Use unix timestamp for event time - Add a timeNano field for event time in nanoseconds Fixes: containers#14993 Signed-off-by: Chee Hau Lim <[email protected]>
Fix has merged |
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
I'm not sure if it is Podman's goal to match Docker's outputs, but while trying to use Podman with a tool designed with Docker CLI, I saw that the output of
podman events --format "{{json .}}"
doesn't contain the same fields asdocker events --format "{{json .}}"
, which prevents the tool to run.Steps to reproduce the issue:
podman events --format "{{json .}}"
Describe the results you received:
Describe the results you expected:
Same as
docker events --format "{{json .}}"
:Additional information you deem important (e.g. issue happens only occasionally):
Output of
podman version
:Output of
podman info --debug
:Package info (e.g. output of
rpm -q podman
orapt list podman
):Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide? (https://github.com/containers/podman/blob/main/troubleshooting.md)
Yes
Additional environment details (AWS, VirtualBox, physical, etc.):
Physical.
Docker --version:
The text was updated successfully, but these errors were encountered: