diff --git a/remotes/docker/pusher.go b/remotes/docker/pusher.go index 0a69c8cce..94a270cb7 100644 --- a/remotes/docker/pusher.go +++ b/remotes/docker/pusher.go @@ -138,7 +138,7 @@ func (p dockerPusher) Push(ctx context.Context, desc ocispec.Descriptor) (conten // // for the private repo, we should remove mount-from // query and send the request again. - resp, err = preq.do(pctx) + resp, err = preq.doWithRetries(pctx, nil) if err != nil { return nil, err } @@ -238,7 +238,7 @@ func (p dockerPusher) Push(ctx context.Context, desc ocispec.Descriptor) (conten go func() { defer close(respC) - resp, err := req.do(ctx) + resp, err := req.doWithRetries(ctx, nil) if err != nil { respC <- response{err: err} pr.CloseWithError(err)