#!/usr/bin/env bash for image_id in $(docker images -q -f 'label=com.example.group=kehui'); do docker image rm ${image_id} -f done