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: images --format : missing .Tag #7123

Closed
edsantiago opened this issue Jul 28, 2020 · 0 comments · Fixed by #7240
Closed

podman-remote: images --format : missing .Tag #7123

edsantiago opened this issue Jul 28, 2020 · 0 comments · Fixed by #7240
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

edsantiago commented Jul 28, 2020

Save an image archive (by SHA, not by name). Reload it. podman-remote images will not show <none> for the tag.

In window 1:

$ ./bin/podman system service --timeout=0

In window 2:

$ ./bin/podman pull alpine
...
$ ./bin/podman save -o /tmp/alpine.tar a24bb401
$ ./bin/podman rmi alpine
Untagged: docker.io/library/alpine:latest
Deleted: a24bb4013296f61e89ba57005a7b3e52274d8edd3ae2077d04395f806b63d83e

$ ./bin/podman-remote load -i /tmp/alpine.tar
Loaded image(s): @a24bb4013296f61e89ba57005a7b3e52274d8edd3ae2077d04395f806b63d83e

$ ./bin/podman-remote images
REPOSITORY                    TAG     IMAGE ID      CREATED        SIZE
<none>                        <none>  a24bb4013296  8 weeks ago    5.85 MB
                              ^^^^^^ this is good

$ ./bin/podman-remote images -a --format '{{.ID}} {{.Repository}}:{{.Tag}}'
a24bb4013296 <none>:  <--- missing <none>

$ ./bin/podman  images -a --format '{{.ID}} {{.Repository}}:{{.Tag}}'
a24bb4013296 <none>:<none>        <--- this is correct, via non-remote podman
@edsantiago edsantiago added bug remote Problem is in podman-remote kind/bug Categorizes issue or PR as related to a bug. and removed bug labels Jul 28, 2020
@jwhonce jwhonce self-assigned this Aug 4, 2020
jwhonce added a commit to jwhonce/podman that referenced this issue Aug 10, 2020
Refactor the processing of Repository and Tag fields to default to <none>
when printing via --format flag. Previously, the default format would
print <none> but --format {{.Tag}} would not in some cases.

Fixes containers#7123

Signed-off-by: Jhon Honce <[email protected]>
mheon pushed a commit to mheon/libpod that referenced this issue Aug 17, 2020
Refactor the processing of Repository and Tag fields to default to <none>
when printing via --format flag. Previously, the default format would
print <none> but --format {{.Tag}} would not in some cases.

Fixes containers#7123

Signed-off-by: Jhon Honce <[email protected]>
mheon pushed a commit to mheon/libpod that referenced this issue Aug 20, 2020
Refactor the processing of Repository and Tag fields to default to <none>
when printing via --format flag. Previously, the default format would
print <none> but --format {{.Tag}} would not in some cases.

Fixes containers#7123

Signed-off-by: Jhon Honce <[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 23, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 23, 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