Skip to content
This repository was archived by the owner on Oct 13, 2023. It is now read-only.

Commit 229bc1e

Browse files
authored
Merge pull request moby#42965 from thaJeztah/do_not_retry
distribution: do not retry unsupported layer media types
2 parents 89a3c42 + 1cdad98 commit 229bc1e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

distribution/push_v2.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,7 @@ func (pd *v2PushDescriptor) uploadUsingSession(
466466
case schema2.MediaTypeLayer:
467467
default:
468468
reader.Close()
469-
return distribution.Descriptor{}, fmt.Errorf("unsupported layer media type %s", m)
469+
return distribution.Descriptor{}, xfer.DoNotRetry{Err: fmt.Errorf("unsupported layer media type %s", m)}
470470
}
471471

472472
digester := digest.Canonical.Digester()

0 commit comments

Comments
 (0)