My application deployment pipeline utilizes GCP triggers and Cloud Build. However, the Cloud Build process is currently experiencing following error.
Step #0:
Step #0: Total reclaimed space: 69.96GB
Finished Step #0
Starting Step #1
Step #1: Pulling image: gcr.io/google.com/cloudsdktool/cloud-sdk
ERROR: failed to pull because we ran out of retries.
ERROR
ERROR: build step 1 "gcr.io/google.com/cloudsdktool/cloud-sdk" failed: error pulling build step 1 "gcr.io/google.com/cloudsdktool/cloud-sdk": retry budget exhausted (10 attempts): starting container: Error response from daemon: No such image: gcr.io/cloud-builders/gcb-internal:latest
Following is the section of Build script that is failing:
steps:
- name: gcr.io/cloud-builders/docker
args:
- '-c'
- |
docker system prune -af --volumes
entrypoint: bash
- name: 'gcr.io/google.com/cloudsdktool/cloud-sdk'
args:
- '-c'
- >
The pipeline has been operating smoothly until recently, when it began experiencing failures with the aforementioned error message.
Any help is highly appreciated in this regard.
It's because of the pruning.
It wasn't an issue in the past, now it is.
Had this issue for a week, maybe it appeared even earlier. Something on Google Cloud's side suddenly broke and you can no longer pull some public images like "bash" or "gcr.io/cloud-builders/gcloud".
For now, you'll have to remove the pruning step.