buildkit/util/resolver
Aaron Lehmann d3b96f4e31 Add retry on image push 5xx errors
Some registries can be flaky and return intermittent 5xx errors. This
change allows those errors to be retried, similarly to network-level
errors.

Note that this needs the upstream containerd fix
https://github.com/containerd/containerd/pull/5276 to work reliably.

This was tested with a registry that was modified to return 504 on every
other manifest PUT. Without the change, exports to the registry fail
every other attempt.  With the change and the related containerd change,
exports to the registry always succeed.

Signed-off-by: Aaron Lehmann <alehmann@netflix.com>
2021-03-26 18:13:45 -07:00
..
retryhandler Add retry on image push 5xx errors 2021-03-26 18:13:45 -07:00
authorizer.go resolver: avoid error caching on token fetch 2021-01-28 00:37:31 -08:00
pool.go resolver: add docs to new functions 2020-08-13 17:27:25 -07:00
resolver.go Revert "resolver: fix tcp connections limit" 2021-02-20 12:15:25 -08:00