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
WIP: add size options for volume ls #43548
base: master
Are you sure you want to change the base?
Conversation
To be clear before my other comments, I 100% want this very badly - the number of times I've wondered "how big is this volume?" is pretty embarrassing. 😂 My biggest concern is that calculating the size of a volume is a really expensive operation (I've got volumes in the 100s of GiB which take a non-trivial amount of time to run (For example, the |
Yes! Definitely need to look at all of those. The TL;DR why I pushed this was that I was chatting with @rumpl that I had a branch somewhere in a pretty early state; @rumpl worked on this for Docker Desktop (for the volume dashboard), so I said; let me just rebase and push that branch (in all its untested glory 😁) All that said; I think this would be a pretty useful feature to have (likely to be "optional" with a --size flag, unless we're considering some caching) |
21418d0
to
34226a4
Compare
34226a4
to
9e6bd9a
Compare
Why on |
@cpuguy83 yes, it's definitely gonna be heavy. The reason to add it to Adding this to Not sure what'd be best for this;
|
Come to think of it, adding filters for |
Yes, that was implemented in #42559 (with initially the intent to have some convenience endpoints per object type; see #42560) I wonder if that would fully solve the use-case, as I don't think we'd have all the options that |
9e6bd9a
to
e80574d
Compare
Need to look what the most reasonable approach is; the backend uses functional options, whereas other backends use an option-struct :/ Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
e80574d
to
5b97ddd
Compare
digging up an old branch I started 3 years ago, and which can be used for the "volumes" dashboard in Docker Desktop.
Still to do;
- Description for the changelog
- A picture of a cute animal (not mandatory but encouraged)