podman and docker produce slightly different output when using "history --format" and http://localhost/v1.24/images/${img}/history #17740
eriksjolund
started this conversation in
General
Replies: 1 comment 1 reply
-
I would say open issues on all of these except for the size ones. No idea why the sizes differ, but I don't believe they are bugs. The others where the output is different, I believe are bugs, but the maintainers of that section may differ. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Is any of the differences between Podman and Docker shown below a bug?
I performed some tests on Fedora CoreOS next (fedora-coreos-37.20230303.1.0-qemu.aarch64.qcow2)
First some preparation steps:
sudo -i
useradd test1
usermod -aG docker test1
machinectl shell @test1
podman pull alpine:3.17.2
docker pull alpine:3.17.2
podman images
and detect the image id. Record the result in a shell variableimg=d74e625d9115
systemctl --user start podman.socket
Test 1
Observation 1: Podman and Docker produce different output
Test 2
Observation 2: Podman inserts an extra space after the number
Observation 3:
7.46 != 7.75
(maybe the sizes are not expected to match?)
Test 3
Observation 4: Podman and Docker use different ways to encode the characters
<
and>
when writing<missing>
, but it seems that this difference does not influence the JSON interpretation (because thejq
command prints the same result).Test 4
Observation 5: The sizes do not match. (This observation is more or less the same as Observation 3).
Test 5
Observation 6: Only docker has a tag.
Test 6
Observation 7: Only docker prints
sha256:
Extra info 1
For completeness here are the same queries but with the full result shown. I added
--sort-keys
tojq
.Extra info 2
The commands above were run with podman 4.4.1 on Fedora CoreOS by using qemu on a macOS laptop (operating system: Ventura 13.2.1).
I have another computer (arch: amd64) running Fedora 37. I re-run the Podman commands there with podman 4.4.2.
The container image ID changed and the container image size changed but nothing else.
About the system:
Click me to show `docker version` and `podman version` and similar commands
Beta Was this translation helpful? Give feedback.
All reactions