Docker Registry API相關
確認目前registry上的repository
curl -k -sS https://username:[email protected]:5000/v2/_catalog | json
{
"repositories": [
"nginx",1.
"simonsu/demo-web"
]
}
確認某個image的tag
curl -k -sS https://username:[email protected]:5000/v2/nginx/tags/list
$ curl -k -sS -X GET https://simonsu:[email protected]:5000/v2/linkeriot/rpi-alpine-nodejs/tags/list
{"name":"linkeriot/rpi-alpine-nodejs","tags":["latest"]}
查詢image的manifests
//TODO: 還不知道做啥的...
curl -k -sS https://username:[email protected]:5000/v2/nginx/manifests/latest
curl -k -sS -X DELETE https://username:[email protected]:5000/v2/nginx/blobs/latest