mirror of
https://github.com/containers/skopeo.git
synced 2025-08-31 14:20:21 +00:00
6ea444ad5aeb70324621d43b5421b69a81e231e9
Signed-off-by: Antonio Murdaca <runcom@redhat.com>
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)
- drop the
Registry
field in the response because of the point above :)
NOT TODO
- provide a format flag - just use the awesome jq
Description
Languages
Go
78.8%
Shell
16%
Makefile
2.9%
Perl
2.1%
Dockerfile
0.2%