Skip to content

Instantly share code, notes, and snippets.

View ngenator's full-sized avatar

Dan Ng ngenator

  • 13:24 (UTC -04:00)
View GitHub Profile
@jaytaylor
jaytaylor / delete-from-v2-docker-registry.md
Last active September 19, 2024 19:03
One liner for deleting images from a v2 docker registry

One liner for deleting images from a v2 docker registry

Just plug in your own values for registry and repo/image name.

registry='localhost:5000'
name='my-image'
curl -v -sSL -X DELETE "http://${registry}/v2/${name}/manifests/$(
    curl -sSL -I \
        -H "Accept: application/vnd.docker.distribution.manifest.v2+json" \