次のコマンドに従って API v2 を使用して、Docker レジストリからイメージを削除しようとしています。
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"]}
何が問題なのか、どこで間違ったのか?