#!/bin/bash for i in `docker images | awk '{print $1}' | grep -v "^REPOSITORY$"`;do docker untag $i docker rmi $i done