genuinetools / img

Standalone, daemon-less, unprivileged Dockerfile and OCI compatible container image builder.
https://blog.jessfraz.com/post/building-container-images-securely-on-kubernetes/
MIT License
3.88k stars 229 forks source link

[feature] built-in retry mechanism on push #359

Open anapsix opened 1 year ago

anapsix commented 1 year ago

It would be awesome to have img push to retry on failure, similar to how docker CLI does it (5 times in total, with exponential back off). Alas, img does not appear to retry on push failures. For context, AWS ECR repos have to pre-created before pushing, and I'm using an AWS Lamba to create an ECR repo when push failure event (caused by missing repo) shows up in Cloudtrail.