Said  Saifi
Said Saifi

Reputation: 2398

how can i check how many versions of a docker image exists?

I want to get the number of tags/versions of a specific image i tried to use docker inspectimage imagename without the tag at the end but it takes the latest tag by default. How can I do this?

Upvotes: 1

Views: 350

Answers (1)

ldg
ldg

Reputation: 9402

You can simply do:

docker images repo/imagename

to see all the tags.

docker images repo/imagename -q | wc -l

will give you a count.

Upvotes: 3

Related Questions