podman system df --format '{{json .}}' is not compliant with docker output #16902
Labels
kind/feature
Categorizes issue or PR as related to a new feature.
locked - please file new issue/PR
Assist humans wanting to comment on an old issue or PR with locked comments.
macos
MacOS (OSX) related
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind feature
Description
I found an extension that parse the output of the JSON generated by
system df
command and the output is not rendered using the same format thandocker
commandSteps to reproduce the issue:
podman system df --format '{{json .}}'
Describe the results you received:
{"Type":"Images","Total":5,"Active":1,"Size":1092221757,"Reclaimable":1092139196}
Describe the results you expected:
{"Active":"21","Reclaimable":"12.76GB (86%)","Size":"14.79GB","TotalCount":"73","Type":"Images"}
Reclaimable should have the size displayed with unit (like 12.76GB) and then it should have the percentage displayed
The same for the Size field.
Additional information you deem important (e.g. issue happens only occasionally):
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/No
Additional environment details (AWS, VirtualBox, physical, etc.):
The text was updated successfully, but these errors were encountered: