mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
b1cc78b8f5
Signed-off-by: Srini Brahmaroutu <srbrahma@us.ibm.com>
9 lines
292 B
Text
9 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
|