List Mirrors
List mirrors, with two optional parameters, one is all, one is Filter,all optional value has, 0/false/false,1/true/true, default is 0;filter is a JSON containing a filtered object, in the form of ' {' Dangling ': [ True "]} '
Get/images/json
We can try to request
Curl-s-xget theegg.me/docker/images/json?all=0 | Python-mjson.tool
You can see the return value as follows:
[
{
"Created": 1405461399,
"Id": "88b42ffd1f7cc87c46edf70924b3e24f18da0eb69337deff4db2979d6e1032d8", "
parentid": "C69cab00d6ef21152755a3de928625d7a02860ebe918b8fe9d1dd6aba15229b2",
"repotags": [
" Fedora:latest "
],
" Size ": 373742581,
" virtualsize ": 373742581
},
{
" Created ": 1403128361, "
Id": "E54ca5efa2e962582a223ca9810f7f1b62ea9b5c3975d14a5da79d3bf6020f37",
"ParentID": " 6c37f792ddacad573016e6aea7fc9fb377127b4767ce6104c9f869314a12041e ",
" repotags ": [
" Ubuntu:latest "
],
"Size": 8,
"VirtualSize": 276100357
}
]
Return value corresponds to meaning:
Created: Time created, this is a Unix time, starting at 1970, in seconds
Id: is a SHA256 value and is the identity of the mirror.
ParentID: is a SHA256 value that is the identity of the parent mirror of the Mirror.
Repotags: is an array of strings that is labeled in the warehouse. A mirror may have more than one label.
Size: is the actual size of the mirror, that is, the size of the mirrored disk space.
VirtualSize: Is the virtual size of the mirror, or the size of the mirror. The actual size of the mirror is the virtual size of the parent mirror minus the virtual size of the mirror.
Creating mirrors
Post/images/create
Request Parameters:
- **fromimage**– Mirror name-the source of the **fromsrc**– mirror, i.e. standard input
- **repo**– warehouse
- **tag**– tag
- **registry**– from which registry
Sample Request:
Curl-s-xpost Theegg.me/docker/images/create?fromimage=base
Return:
This column more highlights: http://www.bianceng.cn/webkf/tools/
Begin:
{
' status ': ' Pulling repository base '
}
In the process:
{
' status ': ' Downloading ', '
progressdetail ': {
' current ': 528384,
' total ': 94863360,
' Start ": 1405907686
},
" Progress ":" [> ] 528.4 kb/94.86 MB 6m30s ",
" id ":" 27cf78414709 "
}
Error: (from the official document, but the actual curl operation is displayed 504 timeout, the reason has not been identified)
{"Error": "Invalid ..."}
return value meaning:
Status: Indicates status, current operation status
Progressdetail: Indicates progress details, which contains three values, current position, total totals, and where start starts
Progress: Represents progress, is a direct output of the Progress display Bar (ASCII)
ID: Designator
Error: Wrong message