Q:

Docker registry cannot delete images?

I have deploy a docker registry on my instance, after push images to the registry successfully, I want to perform a delete opearation with curl -XDelete, following the document on docker site, "DELETE /v2/<name>/manifests/<reference>", but the response show not success: 
Response:
<HTML>
<HEAD><TITLE>Redirection</TITLE></HEAD>
<BODY><H1>Redirect</H1></BODY>`

Does anyone met such problem?

A:

If there is a redirection and curl is involve, try at least to instruct curl to follow said redirection:
curl -L -XDELETE localhost:5000/v2/hello2/manifests/<Reference> 
     ^^

