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