diff --git a/registry/handlers/manifests.go b/registry/handlers/manifests.go index e71fe2c3d..1fb17813c 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)