How does one view what tags are available for a docker image on index.docker.io before pulling? Using sudo docker pull debian will get me all the tags associated with debian which I don't need.
Simply head over to Docker Hub, choose a tag, and each time you pull the image, you'll get the latest version pushed by the authors. The downside of this is that each time a Docker tag is pulled, the latest version is used, and this is often not what you want if you value build reproducibility, and you really should!
Together with jq --raw-output you can get a plain list of tags: skopeo --override-os linux list-tags docker://httpd | jq --raw-output .
docker inspect This command is used see the details of an image or container.
As of today the Docker registry exposes this in the index. See, for example, the Ubuntu base image tags which shows each tag and the filesystem contents of each layer. Via the API:
$ curl https://index.docker.io/v1/repositories/ubuntu/tags
[{"layer": "9cd978db300e27386baa9dd791bf6dc818f13e52235b26e95703361ec3c94dc6", "name": "latest"}, {"layer": "9cc9ea5ea540116b89e41898dd30858107c1175260fb7ff50322b34704092232", "name": "10.04"}, ...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With