github.com/emc-advanced-dev/unik@v0.0.0-20190717152701-a58d3e8e33b7/print_old_containers.sh (about) 1 #!/bin/bash 2 OLD_CONTAINERS=$(for i in $(cat containers/versions.json | jq 'keys[]' -r); do echo projectunik/$i:$(cat containers/versions.json | jq '.[$key]' --arg key $i -r); done) 3 for i in $(docker images | grep projectunik | awk '{print $1":"$2}'); do if [[ $OLD_CONTAINERS != *$i* ]]; then echo $i; fi; done