Created
October 16, 2023 12:29
-
-
Save gquittet/4b306a0e1603699bf66051c4745b392d to your computer and use it in GitHub Desktop.
Docker sum images size
This file contains hidden or 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
#!/usr/bin/env bash | |
docker image ls -a | awk -F ' ' '{ print $7 }' | tail +2 | sed 's/B/i/' | numfmt --from=auto | awk '{n += $1}; END{print n}' | numfmt --to=iec-i |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment