BradleyA / Search-docker-registry-v2-script.1.0

view-private-registry is a simple bash script for listing images in a private registry v2, docker search registry-v2
MIT License
50 stars 16 forks source link

Sort image tags by version instead of purely alphabetically #14

Closed tdluk closed 3 years ago

tdluk commented 3 years ago

This helps when your image tags are versioned:

myrepo:foo-1
myrepo:foo-11
myrepo:foo-5

becomes

myrepo:foo-1
myrepo:foo-5
myrepo:foo-11
BradleyA commented 3 years ago

Sure that is a great idea, thank you for your help!

You got me thinking about also including -r so the latest version would be first, -Vr. Let me know what you think.

tdluk commented 3 years ago

Yep, sounds good to me 😀