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

Add support for docker-archive: to skopeo list-tags #1029

Closed
guanxingfeng opened this issue Aug 27, 2020 · 12 comments · Fixed by #1581
Closed

Add support for docker-archive: to skopeo list-tags #1029

guanxingfeng opened this issue Aug 27, 2020 · 12 comments · Fixed by #1581

Comments

@guanxingfeng
Copy link

command: skopeo inspect docker-archive:/root/busybox.tar
{
"Digest": "sha256:d8db71d650ed60da14a6c6d46ea1103d253a1117586e846020b82726e71d3b19",
"RepoTags": [],
"Created": "2020-06-29T20:21:41.42102751Z",
"DockerVersion": "18.09.7",
"Labels": null,
"Architecture": "amd64",
"Os": "linux",
"Layers": [
"sha256:50761fe126b6e4d90fa0b7a6e195f6030fe250c016c2fc860ac40f2e8d2f2615"
],
"Env": [
"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
]
}

expect display right ,eg "RepoTags":["busybox:latest"]!!

@mtrmac
Copy link
Contributor

mtrmac commented Sep 10, 2020

Thanks for your report.

Conceptually, skopeo inspect exists to provide information about an image; the way it also provides repository tags, only for docker/distribution registries, does not really generalize (and is often actively unwanted in inspect due to the extra overhead). It’s more or less a historical accident preserved for compatibility, and not something that we want to further enhance.

This functionality would be a good fit for skopeo list-tags, though.

@rhatdan
Copy link
Member

rhatdan commented Oct 8, 2020

@guanxingfeng Does list-tags satify your needs?

@mtrmac
Copy link
Contributor

mtrmac commented Oct 8, 2020

@rhatdan skopeo list-tags doesn’t currently implement docker-archive:.

@guanxingfeng
Copy link
Author

@rhatdan I want to get tags from a image tar,skopeo list-tags doesn’t currently implement docker-archive:

@rhatdan
Copy link
Member

rhatdan commented Oct 9, 2020

Would that change make more sense? Using skopeo list-tags on a docker-archive?

@guanxingfeng
Copy link
Author

I wang to implement upload multiple docker tars to image hub using UI,like this,

image

It will be very useful and convenient to get the image tags automatically instead of manual input.

@github-actions
Copy link

github-actions bot commented Jun 5, 2021

A friendly reminder that this issue had no activity for 30 days.

@mtrmac
Copy link
Contributor

mtrmac commented Jan 31, 2022

FWIW containers/image#991 has built the infrastructure necessary to implement this.

@mtrmac mtrmac changed the title skopeo inspect docker-archive:/xxx.tar RepoTags is [] Add support for docker-archive: to skopeo list-tags Jan 31, 2022
@zhangguanzhang
Copy link
Contributor

FWIW containers/image#991 has built the infrastructure necessary to implement this.

Is there any update for this? I use the latest code, it still not implement this

$ skopeo --version
skopeo version 1.7.0-dev commit: 22d187181b0e92a3290c9e63909c4bde98353ed7
skopeo list-tags  docker-archive:test.tar
FATA[0000] Unsupported transport 'docker-archive' for tag listing. Only 'docker' currently supported

@djpbessems
Copy link

I could definitely use this; right now I have to resort to parsing the manifest inside the tarball with jq, this is far from efficient.

@vrothberg
Copy link
Member

You can use it with the latest version of Skopeo.

@djpbessems
Copy link

Yeah sorry, I did not realise that I'm still stuck on an ancient version; SLES' repository still has 1.4.1.

I'll instead run my commands within the official container image.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 17, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants