try pulling images in a loop

This commit is contained in:
Girish Ramakrishnan
2021-03-03 21:54:08 -08:00
parent 38e5d2286e
commit cfcc210f9c
+6 -6
View File
@@ -103,14 +103,14 @@ images=$(node -e "var i = require('${box_src_tmp_dir}/src/infra_version.js'); co
log "\tPulling docker images: ${images}"
for image in ${images}; do
if ! docker pull "${image}"; then # this pulls the image using the sha256
while ! docker pull "${image}"; then # this pulls the image using the sha256
log "Could not pull ${image}"
exit 5
fi
if ! docker pull "${image%@sha256:*}"; then # this will tag the image for readability
sleep 5
done
while ! docker pull "${image%@sha256:*}"; then # this will tag the image for readability
log "Could not pull ${image%@sha256:*}"
exit 6
fi
sleep 5
done
done
log "update cloudron-syslog"