nexus-public icon indicating copy to clipboard operation
nexus-public copied to clipboard

Got MANIFEST_UNKNOWN if try to delete image from docker private repo

Open dynax60 opened this issue 1 year ago • 0 comments

Hi,

I'm using public docker image sonatype/nexus3:3.64.0. The user has the specified rights to work with the private repository: nx-repository-view-docker-*-* When trying to delete an image from the repository, nexus reports manifest unknown.

Details:

After I was able to make a push image to a private repository, I can't delete it from there.

-> % curl -u null -sX GET https://registry.internal:4444/v2/clickhouse/clickhouse-server/tags/list | jq
Enter host password for user 'null':
{
  "name": "clickhouse/clickhouse-server",
  "tags": [
    "latest"
  ]
}
-> % curl -u null -sX GET https://registry.internal:4444/v2/clickhouse/clickhouse-server/manifests/latest | jq '.config.digest'
Enter host password for user 'null':
"sha256:85a5c165103b7ba1a2b06dda73bfc9a2248c37a11567a171c74a484f13f17e8e"
-> % curl -u null -sX DELETE https://registry.internal:4444/v2/clickhouse/clickhouse-server/manifests/sha256:85a5c165103b7ba1a2b06dda73bfc9a2248c37a11567a171c74a484f13f17e8e
Enter host password for user 'null':
{"errors":[{"code":"MANIFEST_UNKNOWN","message":"manifest unknown","detail":[{"Name":"clickhouse/clickhouse-server"},{"Revision":"sha256:85a5c165103b7ba1a2b06dda73bfc9a2248c37a11567a171c74a484f13f17e8e"}]}]}%

My docker compose config:

services:
  nexus:
    image: sonatype/nexus3:3.64.0
    volumes:
      - /data/nexus-data:/nexus-data
  nginx:
    image: nginx:alpine
    volumes:
      - ./nginx/nginx.conf:/etc/nginx/nginx.conf
      - ./nginx/conf.d:/etc/nginx/conf.d
    ports:
      - 80:80
      - 443:443
      - 8084:8084
      - 4444:4444
    depends_on:
      - nexus

docker compose log for that operation is:

nexus3-oss-nginx-1  | 10.8.3.5 - null [16/Jan/2024:06:32:32 +0000] "DELETE /v2/clickhouse/clickhouse-server/manifests/sha256:85a5c165103b7ba1a2b06dda73bfc9a2248c37a11567a171c74a484f13f17e8e HTTP/1.1" 404 207 "-" "curl/7.68.0" "-"

I have no problem deleting this asset if I do it from the UI. But would like to control removal from the shell. The type of docker-private's BLOB store is File.

What could possibly be wrong? Any help is appreciated.

dynax60 avatar Jan 16 '24 07:01 dynax60