注:参考官方文档:https://docs.docker.com/registry/spec/api/
1 与api交互http code
1.1 http code list
编码 | 说明 |
---|---|
200 | All right ok |
202 | the image exists and has been successfully deleted |
400 | The name or reference was invalid. |
401 | The client is not authenticated. |
403 | The client does not have required access to the repository / The registry does not implement the V2 API. |
404 | The repository is not known to the registry. |
1.2 GET /v2/
Code:200 ok
说明:On Success: OK
Code:404 not found
说明:The registry does not implement the V2 API.
Code:401 Unauthorized
说明:The client is not authenticated.
1.3 GET /v2/_catalog
Code:200 ok 说明:On Success: OK
1.4 GET /v2//tags/list
Code:200 OK
说明:On Success: OK
Code:401 Unauthorized