diff --git a/pages/common/docker-images.md b/pages/common/docker-images.md index 1d9046ccc..5f43abc6d 100644 --- a/pages/common/docker-images.md +++ b/pages/common/docker-images.md @@ -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`