muthu_rk
muthu_rk

Reputation: 21

Listing all version numbers of docker image

How can I list the tag history of an image?

'docker search ' command lists only the matching images in the registry, not the version (tags). I wanted to know the tag history of the given image.

One way to know this detail is to go to Docker Hub or GitHub folders for the image and deduce previous versions from Dockerfile.

Is it possible to get this info from docker client command line?

Upvotes: 2

Views: 4804

Answers (1)

Ruslan Kabalin
Ruslan Kabalin

Reputation: 6908

I assume you want to see the list of tagged commits on the image, you can use Dockviz to do that:

$ dockviz images -t
...
├─<missing> Virtual Size: 122.0 MB
│ └─<missing> Virtual Size: 122.4 MB
│   └─<missing> Virtual Size: 122.4 MB
│     └─<missing> Virtual Size: 122.4 MB
│       └─sha256:12543 Virtual Size: 122.4 MB Tags: ubuntu:latest
│         ├─sha256:e807b Virtual Size: 198.1 MB Tags: test/ubuntu:commit2
│         └─sha256:dafd9 Virtual Size: 189.8 MB Tags: test/ubuntu:commit1

Upvotes: 1

Related Questions