When i push a image from a jenkins to gcr following error occurs: denied: Unable to write blob sha256
Even if i set the registry public it is not possible. The same error occurs
My problem sounded likewise. First, I managed to temporary fix it with @michael-bouvy's solution above, by manual deleting the conflicting images.
What have I done to fix it permanently is adding permission in GC IAM to the appropriate custom role of the identity that performs pushing. Namely, in addition to existing ones:
storage.buckets.get
storage.objects.create
storage.objects.get
storage.objects.list
I appended two more:
storage.objects.delete
storage.objects.update
Basically, these permissions just looked like those that required for temporary manual operations.