mirror of
https://github.com/containers/skopeo.git
synced 2025-07-17 16:21:40 +00:00
Work with remote images registries - retrieving information, images, signing content
|
||
---|---|---|
Godeps | ||
.gitignore | ||
inspect_v1.go | ||
inspect_v2.go | ||
inspect.go | ||
LICENSE | ||
main.go | ||
Makefile | ||
README.md |
skopeo
Please be aware skopeo
is still work in progress
skopeo
is a command line utility which is able to inspect a repository on a Docker registry.
By inspect I mean it fetches the repository's manifest and it is able to show you a docker inspect
-like
json output about a whole repository or a tag. This tool, in constrast to docker inspect
, helps you gather useful information about
a repository or a tag before pulling it (using disk space) - e.g. - which tags are available for the given repository? which labels the image has?
Example:
# show image's labels
$ skopeo registry.access.redhat.com/rhel7 | jq '.Config.Labels'
{
"Architecture": "x86_64",
"Authoritative_Registry": "registry.access.redhat.com",
"BZComponent": "rhel-server-docker",
"Build_Host": "rcm-img04.build.eng.bos.redhat.com",
"Name": "rhel7/rhel",
"Release": "38",
"Vendor": "Red Hat, Inc.",
"Version": "7.2"
}
# show image's tags
$ skopeo docker.io/fedora | jq '.RepoTags'
[
"20",
"21",
"22",
"23",
"heisenbug",
"latest",
"rawhide"
]
Building
$ git clone https://github.com/runcom/skopeo
$ make
Installing
$ sudo make install
License
MIT TODO
- show repo tags via flag or when reference isn't tagged or digested
- add tests (integration with deployed registries in container - Docker-like)
- get rid of Docker (meaning make this work w/o needing Docker installed)
NOT TODO
- provide a format flag - just use the awesome jq