mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
10 lines
292 B
Text
10 lines
292 B
Text
|
for image in `docker images | awk '{print $1}'`; do
|
||
|
if ( [ -z "${image##$IMAGEREPO/busybox}" ] ); then
|
||
|
docker tag $image busybox:latest
|
||
|
docker rmi $image
|
||
|
elif ( [ -z "${image##$IMAGEREPO/hello-world}" ] ); then
|
||
|
docker tag $image:frozen hello-world:frozen
|
||
|
docker rmi $image:frozen
|
||
|
fi
|
||
|
done
|