diff --git a/load_images_for_windows.sh b/load_images_for_windows.sh new file mode 100644 index 0000000..8d7b443 --- /dev/null +++ b/load_images_for_windows.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +file="images.properties" + +if [ -f "$file" ] +then + echo "$file found." + #remove "\r" by perl + perl -pi -e 's/\r//' $file + while IFS='=' read -r key value + do + #echo "${key}=${value}" + docker pull ${value} + docker tag ${value} ${key} + docker rmi ${value} + done < "$file" + +else + echo "$file not found." +fi +