buildkit/util/contentutil
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
..
buffer.go update containerd library 2018-06-08 21:44:17 +09:00
buffer_test.go upgrade errors checks to Is() 2020-04-18 22:53:38 -07:00
copy.go Add retry on image push 5xx errors 2021-03-26 18:13:45 -07:00
copy_test.go fix import cycle in integration test pulls 2020-11-11 21:21:08 -08:00
fetcher.go integration: use local registry mirrors 2018-09-11 18:37:21 -07:00
fetcher_test.go fix import cycle in integration test pulls 2020-11-11 21:21:08 -08:00
multiprovider.go update golint comments 2018-09-18 22:06:47 -07:00
multiprovider_test.go upgrade errors checks to Is() 2020-04-18 22:53:38 -07:00
pusher.go contentutil: synchronize writers backed by pusher 2020-06-29 12:40:05 -07:00
refs.go replace github.com/docker/docker/pkg/locker with moby/locker v1.0.1 2020-10-30 09:25:05 +01:00