Created
May 19, 2018 16:03
-
-
Save hongkongkiwi/4970ebccaf6126e51cd5049d3ef7b773 to your computer and use it in GitHub Desktop.
One Liner to Get Docker Images Total Filesize
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
docker images --format "{{.Size}}" | sed -e 's/t/kg/i;s/g/km/i;s/m/kk/i;s/k/*1000/ig;s/b//i' | bc | paste -sd+ | bc | numfmt --to=iec-i --suffix=B --padding=7 | tr -d ' ' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment