diff --git a/registry/handlers/manifests.go b/registry/handlers/manifests.go index e71fe2c3..1fb17813 100644 --- a/registry/handlers/manifests.go +++ b/registry/handlers/manifests.go @@ -485,6 +485,11 @@ func (imh *manifestHandler) applyResourcePolicy(manifest distribution.Manifest) func (imh *manifestHandler) DeleteManifest(w http.ResponseWriter, r *http.Request) { dcontext.GetLogger(imh).Debug("DeleteImageManifest") + if imh.Tag != "" { + imh.Errors = append(imh.Errors, errcode.ErrorCodeUnsupported) + return + } + manifests, err := imh.Repository.Manifests(imh) if err != nil { imh.Errors = append(imh.Errors, err)