Reputation: 1012
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.
Upvotes: 9
Views: 3857
Reputation: 1012
Found what I wanted with this How to pull a single image from any docker repository?
docker pull <image_name>:<tag>
Example: docker pull debian:stable
Upvotes: -7
Reputation: 34406
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"}, ...
Upvotes: 9