docker sort image by size code example
Example: list docker images sorted by size
docker images --format "{{.ID}}\t{{.Size}}\t{{.Repository}}" | sort -k 2 -h
docker images --format "{{.ID}}\t{{.Size}}\t{{.Repository}}" | sort -k 2 -h