1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-08-04 14:15:44 +02:00

docker-images: Adding command to sort images by size (#10231)

* docker-images: Adding command to sort images by size

From: https://stackoverflow.com/a/61091528/520275

* docker-images: Adding colon to git images sort command
This commit is contained in:
Gonzalo Matheu 2023-07-16 03:07:12 -03:00 committed by GitHub
parent 48047a58c9
commit 232ac605e9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -22,3 +22,7 @@
- List images that contain a substring in their name:
`docker images "{{*name*}}"`
- Sort images by size:
`docker images --format "{{.ID}}\t{{.Size}}\t{{.Repository}}:{{.Tag}}" | sort -k 2 -h`