Skip to content
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

disk usage: last accessed not displayed #867

Merged
merged 1 commit into from
Nov 29, 2021

Conversation

crazy-max
Copy link
Member

LAST ACCESSED is currently not displayed when docker buildx du is typed:

$ docker buildx du
ID                                                                      RECLAIMABLE     SIZE            LAST ACCESSED
tfh97mauvv969bbf9alj95dnj*                                              true            528.48MB
zkflab60sf3z1b8lmbik9dyb1                                               true            454.48MB
3jef3cg8lwudcluhb5nahsvif*                                              true            398.66MB
ri0p36t0xhc6yor2304x07h3d*                                              true            160.39MB
5mk6axu5qiga7f6z750nayckn*                                              true            62.00MB
wd188ekm0g89savkrot6cjkf0*                                              true            61.98MB
8mwxxr5ay0m2a9jleth2nztqw*                                              true            47.17MB
512jhzfadd7o9df516eq0myqo*                                              true            47.12MB
k4e6d0h82sd6xwb1pedr0jk2w                                               true            30.41MB
687h2dhzh627elkjc8fswp9n7                                               true            30.40MB
yh6rmjcs31ldem3x11rnq967x                                               true            20.57MB
aqftc8mpanfm0yi59vlf6hr0m                                               true            14.79MB
rcb679xax2bxcxgo2lvuf6rq1                                               true            9.09MB
djlpzedli0plffj32hm5zqquj                                               true            1.71MB
duj1672h9xt2xp2fa9mecnlba                                               true            91.81kB
25a9cih7gdb3n9rn5ywuduxv7                                               true            81.92kB
imuvawazj7rv7knkh6g3g71ka*                                              true            20.48kB
jhj13u45ji8dczsezvi9ano4t                                               true            16.54kB
05pe0f2pv632qpuoj2b5flgvi                                               true            12.44kB
mitzbz3hsw9mnyqrho9l3yvr7                                               true            8.19kB
e4n0vwlqbx76whw1vtnbg0yet*                                              true            8.19kB
a01diuegxlvjrfxiufeagj4ae                                               true            8.19kB
20rm8n3924qent9bq73hy30ne*                                              true            8.19kB
Reclaimable:    1.87GB
Total:          1.87GB

This PR displays the last time a cache record has been accessed:

$ docker buildx du
ID                                              RECLAIMABLE     SIZE            LAST ACCESSED
tfh97mauvv969bbf9alj95dnj*                      true            528.5MB         19 seconds ago
zkflab60sf3z1b8lmbik9dyb1                       true            454.5MB         3 minutes ago
3jef3cg8lwudcluhb5nahsvif*                      true            398.7MB         19 seconds ago
ri0p36t0xhc6yor2304x07h3d*                      true            160.4MB         26 seconds ago
5mk6axu5qiga7f6z750nayckn*                      true            62MB            2 minutes ago
wd188ekm0g89savkrot6cjkf0*                      true            61.98MB         2 minutes ago
8mwxxr5ay0m2a9jleth2nztqw*                      true            47.17MB         26 seconds ago
512jhzfadd7o9df516eq0myqo*                      true            47.12MB         26 seconds ago
k4e6d0h82sd6xwb1pedr0jk2w                       true            30.41MB         2 minutes ago
687h2dhzh627elkjc8fswp9n7                       true            30.4MB          26 seconds ago
yh6rmjcs31ldem3x11rnq967x                       true            20.57MB         26 seconds ago
aqftc8mpanfm0yi59vlf6hr0m                       true            14.79MB         2 minutes ago
rcb679xax2bxcxgo2lvuf6rq1                       true            9.086MB         3 minutes ago
djlpzedli0plffj32hm5zqquj                       true            1.711MB         3 minutes ago
duj1672h9xt2xp2fa9mecnlba                       true            91.81kB         26 seconds ago
25a9cih7gdb3n9rn5ywuduxv7                       true            81.92kB         26 seconds ago
imuvawazj7rv7knkh6g3g71ka*                      true            20.48kB         26 seconds ago
jhj13u45ji8dczsezvi9ano4t                       true            16.54kB         26 seconds ago
05pe0f2pv632qpuoj2b5flgvi                       true            12.44kB         3 minutes ago
mitzbz3hsw9mnyqrho9l3yvr7                       true            8.192kB         2 minutes ago
e4n0vwlqbx76whw1vtnbg0yet*                      true            8.192kB         26 seconds ago
a01diuegxlvjrfxiufeagj4ae                       true            8.192kB         26 seconds ago
20rm8n3924qent9bq73hy30ne*                      true            8.192kB         26 seconds ago
Reclaimable:    1.868GB
Total:          1.868GB

This also uses github.com/docker/go-units instead of github.com/tonistiigi/units to format the output.

Signed-off-by: CrazyMax [email protected]

@tonistiigi tonistiigi merged commit aadd118 into docker:master Nov 29, 2021
@crazy-max crazy-max deleted the du-last-accessed branch November 29, 2021 17:49
@crazy-max crazy-max added this to the v0.8.0 milestone Jan 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants