Require enable delete on docker-compose.yml.
environment:
REGISTRY_STORAGE_DELETE_ENABLED: "true"Run command to delete image tag.
# Yout registry Host
HOST=registry.docker.com
CREDENTIALS="user:password"
IMAGE=example
TAG=latest
DIGEST=$(curl --silent -I -H "Accept: application/vnd.docker.distribution.manifest.v2+json" -u $CREDENTIALS -X GET https://$HOST/v2/$IMAGE/manifests/$TAG 2>&1 | grep docker-content-digest | awk '{print ($2)}')
echo $DIGEST
curl -u $CREDENTIALS -X DELETE https://$HOST/v2/$IMAGE/manifests/$DIGESTFinally, run garbage collector
docker exec -it docker-registry bin/registry garbage-collect /etc/docker/registry/config.yml --delete-untagged=true