#!bin/bash for image in $(docker images |awk '{print $1}'); do if [[ $image == zr-cloud* ]]; then docker rmi "${image}:latest" fi done