-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
REST API: /v1.24/images/${img}/history
contains "Size":0
where docker has "Size":7458929
#20375
Closed
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.
Comments
Can reproduce on the CLI as well:
|
vrothberg
added a commit
to vrothberg/common
that referenced
this issue
Oct 17, 2023
Computing the history did not walk the layers correctly. Fix that and try to improve the code to make it easier to read and maintain for future pairs of eyes. A regression will be added to the Podman PR vendoring this change. Fixes: containers/podman/issues/20375 Signed-off-by: Valentin Rothberg <vrothberg@redhat.com>
vrothberg
added a commit
to vrothberg/common
that referenced
this issue
Oct 17, 2023
Computing the history did not walk the layers correctly. Fix that and try to improve the code to make it easier to read and maintain for future pairs of eyes. A regression will be added to the Podman PR vendoring this change. Fixes: containers/podman/issues/20375 Signed-off-by: Valentin Rothberg <vrothberg@redhat.com>
This was referenced Oct 17, 2023
Opened #20381 to fix the issue. |
vrothberg
added a commit
to vrothberg/common
that referenced
this issue
Oct 17, 2023
Computing the history did not walk the layers correctly. Fix that and try to improve the code to make it easier to read and maintain for future pairs of eyes. A regression will also be added to the Podman PR vendoring this change. Fixes: containers/podman/issues/20375 Signed-off-by: Valentin Rothberg <vrothberg@redhat.com>
vrothberg
added a commit
to vrothberg/common
that referenced
this issue
Oct 17, 2023
Computing the history did not walk the layers correctly. Fix that and try to improve the code to make it easier to read and maintain for future pairs of eyes. A regression will also be added to the Podman PR vendoring this change. Fixes: containers/podman/issues/20375 Signed-off-by: Valentin Rothberg <vrothberg@redhat.com>
vrothberg
added a commit
to vrothberg/common
that referenced
this issue
Oct 17, 2023
Computing the history did not walk the layers correctly. Fix that and try to improve the code to make it easier to read and maintain for future pairs of eyes. A regression will also be added to the Podman PR vendoring this change. Fixes: containers/podman/issues/20375 Signed-off-by: Valentin Rothberg <vrothberg@redhat.com>
vrothberg
added a commit
to vrothberg/libpod
that referenced
this issue
Oct 18, 2023
libimage did not walk thte layers correctly which was probably inherited by old Podman code. Fix that by vendoring in the corresponding changes in c/common. Fixes: containers#20375 Signed-off-by: Valentin Rothberg <vrothberg@redhat.com>
github-actions
bot
added
the
locked - please file new issue/PR
Assist humans wanting to comment on an old issue or PR with locked comments.
label
Jan 16, 2024
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Issue Description
REST API: Result from
/v1.24/images/${img}/history
contains"Size":0
where docker has"Size":7458929
Steps to reproduce the issue
On Fedora CoreOS 39.20231006.1.0 (aarch64) VM perform the following steps:
sudo -i
systemctl start docker
useradd test
usermod -aG docker
machinectl shell --uid test
img=$(podman pull alpine:3.17.2)
docker pull alpine:3.17.2
systemctl --user start podman.socket
curl -s --unix-socket /var/run/docker.sock http://localhost/v1.24/images/${img}/history > docker-result.txt
curl -s --unix-socket $XDG_RUNTIME_DIR/podman/podman.sock http://localhost/v1.24/images/${img}/history > podman-result.txt
cat result-docker.txt | jq '.[1].Size'
cat result-podman.txt | jq '.[1].Size'
Describe the results you received
Step 11:
Step 12:
Describe the results you expected
I expected to see the same number in both Step 11 and Step 12
podman info output
Podman in a container
No
Privileged Or Rootless
Rootless
Upstream Latest Release
Yes
Additional environment details
Additional information
The whole result from the REST API calls above.
The text was updated successfully, but these errors were encountered: