Skip to content

Instantly share code, notes, and snippets.

@namachan10777
Created August 30, 2021 08:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save namachan10777/1df325bc7ce298d121e509d7c34e05b3 to your computer and use it in GitHub Desktop.
Save namachan10777/1df325bc7ce298d121e509d7c34e05b3 to your computer and use it in GitHub Desktop.
#!/bin/sh
for container in $(docker ps | awk 'NR>1{print $1}'); do
printf "%s: %s\n" ${container} $(docker inspect $(docker inspect ${container} | jq .[0].Image | gsed -e 's/"sha256:\([0-9a-f]*\)"/\1/g') | jq .[0].Architecture)
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment