Merge pull request #15796 from azurezk/add-size-to-inspect

add container size info to inspect
This commit is contained in:
Vincent Demeester
2015-10-13 23:16:10 +02:00
13 changed files with 108 additions and 8 deletions
@@ -467,6 +467,26 @@ Return low-level information on the container `id`
]
}
**Example request, with size information**:
GET /containers/4fa6e0f0c678/json?size=1 HTTP/1.1
**Example response, with size information**:
HTTP/1.1 200 OK
Content-Type: application/json
{
....
"SizeRw": 0,
"SizeRootFs": 972,
....
}
Query Parameters:
- **size** 1/True/true or 0/False/false, return container size information. Default is `false`.
Status Codes:
- **200** no error