mirror of https://github.com/CrimsonTome/tldr.git
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 commandpull/23/head
parent
48047a58c9
commit
232ac605e9
|
@ -22,3 +22,7 @@
|
||||||
- List images that contain a substring in their name:
|
- List images that contain a substring in their name:
|
||||||
|
|
||||||
`docker images "{{*name*}}"`
|
`docker images "{{*name*}}"`
|
||||||
|
|
||||||
|
- Sort images by size:
|
||||||
|
|
||||||
|
`docker images --format "{{.ID}}\t{{.Size}}\t{{.Repository}}:{{.Tag}}" | sort -k 2 -h`
|
||||||
|
|
Loading…
Reference in New Issue