Last active
January 18, 2017 14:41
-
-
Save niloct/c9835f9b305faa71070fd4d3620c0855 to your computer and use it in GitHub Desktop.
Bash command for sorting `docker images` command by image size ascending.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias docker-images-by-size="LC=$LC_NUMERIC && LC_NUMERIC=en_US.UTF-8 && docker images | head -1 && docker images | awk 'NR>2' | sort -k8h -k7n && LC_NUMERIC=$LC" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment