From 81f906ff0b1eee0016dff54a1379897fb628ab59 Mon Sep 17 00:00:00 2001 From: renhaixiang Date: Thu, 31 Oct 2019 20:10:54 +0800 Subject: [PATCH] windows os remove r --- load_images_for_windows.sh | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 load_images_for_windows.sh 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 +