我正在尝试使用遵循命令的 API v2 从 Docker Registry 中删除图像:
curl -k -v -u 'docker:sdf' -X DELETE https://localhost:5000/v2/bkf/ebbg/manifests/1
但我得到下一个错误:
> DELETE /v2/bkf/ebbg/manifests/1 HTTP/1.1
> Authorization: Basic ZG9ja2VyOkRrZmxidmJoMjAx==
> User-Agent: curl/7.35.0
> Host: localhost:5000
> Accept: */*
>
< HTTP/1.1 400 Bad Request
< Content-Type: application/json; charset=utf-8
< Docker-Distribution-Api-Version: registry/2.0
< X-Content-Type-Options: nosniff
< Date: Mon, 14 Mar 2016 07:56:13 GMT
< Content-Length: 98
<
{"errors":[{"code":"DIGEST_INVALID","message":"provided digest did not match uploaded content"}]}
命令:
curl -u 'docker:sdf' -X GET https://localhost:5000/v2/_catalog
节目
{"repositories":["bkf/ebbg"]}
命令
curl -k -u 'docker:sdf' -X GET https://localhost:5000/v2/bkf/ebbg/tags/list
节目
{"name":"bkf/ebbg","tags":["32","1","latest","12","33","34"]}
可能是什么问题或我哪里出错了?