Skip to content

Instantly share code, notes, and snippets.

View hacknlove's full-sized avatar
🏠
Working from home

hacknlove hacknlove

🏠
Working from home
View GitHub Profile
@jaytaylor
jaytaylor / delete-from-v2-docker-registry.md
Last active April 19, 2024 18:12
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" \