Skip to content
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-remote untag by SHA: loses tag #11557

Closed
edsantiago opened this issue Sep 13, 2021 · 1 comment · Fixed by #11651
Closed

podman-remote untag by SHA: loses tag #11557

edsantiago opened this issue Sep 13, 2021 · 1 comment · Fixed by #11651
Assignees
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. remote Problem is in podman-remote

Comments

@edsantiago
Copy link
Member

Untagging an image by SHA works fine with podman local. With remote, the image tag is lost.

Reproducer:

#!/bin/bash

# Invoke with "-remote" (one dash) to use podman-remote
PODMAN=bin/podman$1
IMAGE=quay.io/libpod/testimage:20210610

$PODMAN rmi -a &>/dev/null
$PODMAN pull -q $IMAGE
digest=$($PODMAN inspect --format '{{.Digest}}' $IMAGE)
$PODMAN pull -q $IMAGE@$digest
$PODMAN untag $IMAGE $IMAGE@$digest
$PODMAN images -a

Results:

$ ./repro
9f9ec7f2fdef9168f74e9d057f307955db14d782cff22ded51d277d74798cb2f
9f9ec7f2fdef9168f74e9d057f307955db14d782cff22ded51d277d74798cb2f
REPOSITORY                TAG         IMAGE ID      CREATED       SIZE
quay.io/libpod/testimage  20210610    9f9ec7f2fdef  3 months ago  7.99 MB
$ ./repro -remote
9f9ec7f2fdef9168f74e9d057f307955db14d782cff22ded51d277d74798cb2f
9f9ec7f2fdef9168f74e9d057f307955db14d782cff22ded51d277d74798cb2f
REPOSITORY                TAG         IMAGE ID      CREATED       SIZE
quay.io/libpod/testimage  <none>      9f9ec7f2fdef  3 months ago  7.99 MB
                          ^^^^^^ THIS IS BAD
@edsantiago edsantiago added the remote Problem is in podman-remote label Sep 13, 2021
@vrothberg vrothberg self-assigned this Sep 20, 2021
@vrothberg vrothberg added the kind/bug Categorizes issue or PR as related to a bug. label Sep 20, 2021
@vrothberg
Copy link
Member

Opened #11651

vrothberg added a commit to vrothberg/libpod that referenced this issue Sep 20, 2021
Fix a bug when remotely untagging an image via tag@digest.
The digest has been lost in the remote client and hence led
to a wrong behaviour on the server.

Fixes: containers#11557
Signed-off-by: Valentin Rothberg <[email protected]>
mheon pushed a commit to mheon/libpod that referenced this issue Sep 20, 2021
Fix a bug when remotely untagging an image via tag@digest.
The digest has been lost in the remote client and hence led
to a wrong behaviour on the server.

Fixes: containers#11557
Signed-off-by: Valentin Rothberg <[email protected]>
mheon pushed a commit to mheon/libpod that referenced this issue Sep 22, 2021
Fix a bug when remotely untagging an image via tag@digest.
The digest has been lost in the remote client and hence led
to a wrong behaviour on the server.

Fixes: containers#11557
Signed-off-by: Valentin Rothberg <[email protected]>
@github-actions 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 Sep 21, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 21, 2023
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. remote Problem is in podman-remote
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants