Skip to content

Deleting images #166

Open
Open
@jjo93sa

Description

@jjo93sa

Hi, perhaps I'm doing something wrong, but I can't get reg to delete an image, despite running garbage collection after issuing the command.

I'm trying to delete an alpine image from a registry, so I retrieve the manifest like this:

{
"schemaVersion": 2,
"mediaType": "application/vnd.docker.distribution.manifest.v2+json",
"config": {
"mediaType": "application/vnd.docker.container.image.v1+json",
"size": 1512,
"digest": "sha256:196d12cf6ab19273823e700516e98eb1910b03b17840f9d5509f03858484d321"
},
"layers": [
{
"mediaType": "application/vnd.docker.image.rootfs.diff.tar.gzip",
"size": 2206931,
"digest": "sha256:4fe2ade4980c2dda4fc95858ebb981489baec8c1e4bd282ab1c3560be8ff9bde"
}
]
}

I've tried using both digests, in both cases, I receive a response message like this:

Deleted /alpine@sha256:196d12cf6ab19273823e700516e98eb1910b03b17840f9d5509f03858484d321

The image is still listed, before and after manually initiating garbage collection on the repository:

Repositories for
REPO TAGS
alpine latest

The registry Env contains "REGISTRY_STORAGE_DELETE_ENABLED=true", which I believe is required to delete images? Am I doing something fundamentally stupid here?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions