-
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
Output of podman ps --format=json #6980
Comments
Command is strange. It doesn't match what Docker is doing, and it doesn't match what we did before. Looks like a bug to me? |
I also don't think there's a reason for Status to be not be included. It could be calculated from what we provide, and we're probably doing that in the frontend for |
ok, those latter two, if we have consensus, I'll make a PR to fix. |
@baude Does |
|
@baude @mheon Thanks for the replies. I think it would be great to have Status added back, and for command to be a string again so that both fields match with docker and earlier versions of podman. @baude you mentioned that changing ID to Id was an intentional decision. Is there a specific reason for this or is it still possible to keep things consistent with the output from |
@buvoli motivation was a little about the latter but primarily we were not consistent amongst podman itself. So that was probably the driving factor. |
@baude I just tried podman 2.0.4 and noticed that the status command is still not present when running |
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
The output of
podman ps --format=json
is missing fields compared to podman 1.9, and time fields are inconsistent. These changes cause problems for scripts that parse the ps command output.Mislabeled Fields:
CreatedAt
contains string instead of numberMissing fields:
Status
(show in both docker and previous versions of podman)Inconsistant Fields:
ID
is nowId
(both docker and previous versions of podman had ID)command
is now String[] instead of StringSteps to reproduce the issue:
podman ps --format=json
Describe the results you received:
Describe the results you expected:
Only showing output for the aforementioned fields
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
):Additional environment details (AWS, VirtualBox, physical, etc.):
The text was updated successfully, but these errors were encountered: