Cannot DELETE from private docker repo - Sonatype Nexus Repository - Sonatype Community

Cannot DELETE from private docker repo

post by dynax60 on Dec 25, 2023

Hi

I’m run sonatype/nexus3:3.63.0 from docker. There’s also nginx reverse proxy with SSL cert.

When trying to delete from private docker repo using docker’s API (as wrote at How to delete docker images from Nexus Repository 3) I get the error:

$ curl -u den -sX DELETE https://registry.internal:4444/v2/clickhouse/clickhouse-server/manifests/sha256:85a5c165103b7ba1a2b06dda73bfc9a2248c37a11567a171c74a484f13f17e8e

Enter host password for user ‘den’: **********

{"errors":[{"code":"UNAUTHORIZED","message":"access to the requested resource is not authorized","detail":null}]}

The role for user den has the following privileges:

What’s wrong? Any help is appreciated.