INNER CODE UNIT · Shell

LOCAL_DOCKER_IMAGE_NAME

evertramos/nginx-proxy-automation · bin/fresh-start.sh:595

  LOCAL_DOCKER_IMAGE_NAME=${1:-null}
  LOCAL_DOCKER_IMAGE_VERSION=${2:-null}

  # Check image exists
  run_function dockerhub_check_image_exists $LOCAL_DOCKER_IMAGE_NAME

  if [[ "$DOCKERHUB_IMAGE_EXISTS" != true ]]; then
    echoerror "It seems the image '$LOCAL_DOCKER_IMAGE_NAME' does not exist in docker hub (https://hub.docker.com) or the site is down. Wait a few minutes and try again." false
    local_undo_restore
  fi

  # Check if image and version exists in docker hub
  run_function dockerhub_check_image_exists $LOCAL_DOCKER_IMAGE_NAME $LOCAL_DOCKER_IMAGE_VERSION

  if [[ "$DOCKERHUB_IMAGE_EXISTS" != true ]]; then
    echoerror "It seems the image '$LOCAL_DOCKER_IMAGE_NAME:$LOCAL_DOCKER_IMAGE_VERSION' does not exist in docker hub (https://hub.docker.com) or the site is down. Wait a few minutes and try again." false
    local_undo_restore
  fi

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…