pull/59/merge
renhaixiang 9 months ago committed by GitHub
commit 7f255ed747
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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
Loading…
Cancel
Save