pusher: add missing authentication support for requests
@@ -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)
