while...do

This commit is contained in:
Girish Ramakrishnan
2021-03-04 12:07:35 -08:00
parent 10ca889de0
commit 94dcec9df1

View File

@@ -103,11 +103,11 @@ 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
while ! docker pull "${image}"; then # this pulls the image using the sha256
while ! docker pull "${image}"; do # this pulls the image using the sha256
log "Could not pull ${image}"
sleep 5
done
while ! docker pull "${image%@sha256:*}"; then # this will tag the image for readability
while ! docker pull "${image%@sha256:*}"; do # this will tag the image for readability
log "Could not pull ${image%@sha256:*}"
sleep 5
done