while...do
This commit is contained in:
@@ -103,11 +103,11 @@ images=$(node -e "var i = require('${box_src_tmp_dir}/src/infra_version.js'); co
|
|||||||
|
|
||||||
log "\tPulling docker images: ${images}"
|
log "\tPulling docker images: ${images}"
|
||||||
for image in ${images}; do
|
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}"
|
log "Could not pull ${image}"
|
||||||
sleep 5
|
sleep 5
|
||||||
done
|
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:*}"
|
log "Could not pull ${image%@sha256:*}"
|
||||||
sleep 5
|
sleep 5
|
||||||
done
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user