-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[RFC] default sort order of "tag ls" enhancements #151
Comments
We matched the options available on Hub: |
Yes we need to add that to the help description 👍 |
I suspect there's a bug somewhere (perhaps on Docker Hub's side?); look at this output (I removed some columns); $ hub-tool tag ls nginx
TAG LAST UPDATE LAST PUSHED LAST PULLED SIZE
nginx:latest 3 weeks ago 3 weeks About a minute 421.2MB
nginx:stable-alpine-perl 2 weeks ago 2 weeks 6 minutes 124.8MB
nginx:stable-alpine 2 weeks ago 2 weeks 4 minutes 64.99MB
nginx:mainline-alpine-perl 2 weeks ago 2 weeks 9 minutes 126.3MB
nginx:mainline-alpine 2 weeks ago 2 weeks 6 minutes 66.49MB
nginx:alpine-perl 2 weeks ago 2 weeks 9 minutes 126.3MB
nginx:alpine 2 weeks ago 2 weeks 6 minutes 66.49MB
nginx:1.19.6-alpine-perl 2 weeks ago 2 weeks 9 minutes 126.3MB
nginx:1.19.6-alpine 2 weeks ago 2 weeks 6 minutes 66.49MB
nginx:1.19-alpine-perl 2 weeks ago 2 weeks 9 minutes 126.3MB
nginx:1.19-alpine 2 weeks ago 2 weeks 6 minutes 66.49MB
nginx:1.18.0-alpine-perl 2 weeks ago 2 weeks 6 minutes 124.8MB
nginx:1.18.0-alpine 2 weeks ago 2 weeks 4 minutes 64.99MB
nginx:1.18-alpine-perl 2 weeks ago 2 weeks 6 minutes 124.8MB
nginx:1.18-alpine 2 weeks ago 2 weeks 4 minutes 64.99MB
nginx:1-alpine-perl 2 weeks ago 2 weeks 9 minutes 126.3MB
nginx:1-alpine 2 weeks ago 2 weeks 6 minutes 66.49MB
nginx:perl 3 weeks ago 3 weeks About a minute 506.4MB |
Description
This started mostly because I was playing with
hub-tool tag ls
, and got curious; "so, what's the default sort order??".I didn't see what the output of
hub-tool tag ls
was sorted on, then I thought it was on "last pulled", but that didn't seem to be the order either?Include sort order in summary
First thing I noticed, is that we don't show what the output is sorted on. The output does contain a notice about number of tags; perhaps we should include information about sorting there as well;
Mention default sort order in "usage" output
The
--help
output also doesn't include the default;"Last pulled" is not an option for
--sort
Interestingly,
last pulled
is not an option for--sort
, which means that I cannot manually / explicitly specify the output to be sorted by "last pulled". Being able to sort by "last pulled" can assist users when (if?) retention limits will be introduced.We should probably add that as an option if possible
Sort by "last updated" as a default?
Perhaps
last updated
orlast pushed
would make more sense as a default, which would make the output somewhat predictable, and puts the "latest" image at the top of the list. This would address use-cases such as; docker/for-linux#455 (comment)Output of
docker hub --version
:The text was updated successfully, but these errors were encountered: