diff --git a/scripts/installer.sh b/scripts/installer.sh index ee0804f29..3ad63e118 100755 --- a/scripts/installer.sh +++ b/scripts/installer.sh @@ -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"