{"id":1068,"date":"2026-03-24T14:57:26","date_gmt":"2026-03-24T06:57:26","guid":{"rendered":"https:\/\/blog.espnlol.com\/?p=1068"},"modified":"2026-03-24T14:57:27","modified_gmt":"2026-03-24T06:57:27","slug":"%e9%80%9a%e8%bf%87api%e6%93%8d%e4%bd%9cregistry%e9%95%9c%e5%83%8f%e4%bb%93%e5%ba%93","status":"publish","type":"post","link":"https:\/\/blog.espnlol.com\/?p=1068","title":{"rendered":"\u901a\u8fc7api\u64cd\u4f5cregistry\u955c\u50cf\u4ed3\u5e93"},"content":{"rendered":"\n<pre class=\"wp-block-code\"><code>#\u67e5\u770b\u4ed3\u5e93\u955c\u50cf\ncurl -u admin:xxxx -X GET  http:\/\/localhost:5000\/v2\/_catalog |jq .\n\n#\u67e5\u770b\u955c\u50cftags\u5217\u8868\ncurl -u admin:xxxx http:\/\/localhost:5000\/v2\/rancher\/mirrored-bci-micro\/tags\/list\n\n#\u83b7\u53d6\u955c\u50cfdigest\ncurl -u admin:xxxx -I -H \"Accept: application\/vnd.oci.image.manifest.v1+json,application\/vnd.docker.distribution.manifest.v2+json\" \"http:\/\/127.0.0.1:5000\/v2\/rancher\/mirrored-bci-micro\/manifests\/15.6.24.2\"\n\n#\u5220\u9664\u955c\u50cfdigest\ncurl -u admin:xxxx -X DELETE \"http:\/\/127.0.0.1:5000\/v2\/rancher\/mirrored-bci-micro\/manifests\/sha256:f41c2cc13d309285afc0e5aa625c4af5212dfc2b7c652c8e3724576b4d47e834\"\n\n#\u7269\u7406\u5220\u9664\u955c\u50cf\u76ee\u5f55\nrm -rf \/data\/registry\/docker\/registry\/v2\/repositories\/rancher\/mirrored-bci-micro\/\n\n#\u5783\u573e\u56de\u6536\nregistry garbage-collect \/etc\/registry\/registry_config.yml <\/code><\/pre>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26],"tags":[],"class_list":["post-1068","post","type-post","status-publish","format-standard","hentry","category-k8s"],"_links":{"self":[{"href":"https:\/\/blog.espnlol.com\/index.php?rest_route=\/wp\/v2\/posts\/1068","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.espnlol.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.espnlol.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.espnlol.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.espnlol.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1068"}],"version-history":[{"count":1,"href":"https:\/\/blog.espnlol.com\/index.php?rest_route=\/wp\/v2\/posts\/1068\/revisions"}],"predecessor-version":[{"id":1069,"href":"https:\/\/blog.espnlol.com\/index.php?rest_route=\/wp\/v2\/posts\/1068\/revisions\/1069"}],"wp:attachment":[{"href":"https:\/\/blog.espnlol.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1068"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.espnlol.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1068"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.espnlol.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1068"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}