Merge pull request #13198 from rhvgoyal/extend-docker-inspect

docker-inspect: Extend docker inspect to export image metadata related to graph driver
Upstream-commit: e69df2589c1220217054abdc6a361b55990b3c0b
Component: engine
This commit is contained in:
Vincent Batts
2015-06-16 15:03:14 -05:00
14 changed files with 353 additions and 205 deletions
+7
View File
@@ -75,6 +75,11 @@ type Image struct {
Labels map[string]string
}
type GraphDriverData struct {
Name string
Data map[string]string
}
// GET "/images/{name:.*}/json"
type ImageInspect struct {
Id string
@@ -90,6 +95,7 @@ type ImageInspect struct {
Os string
Size int64
VirtualSize int64
GraphDriver GraphDriverData
}
// GET "/containers/json"
@@ -218,6 +224,7 @@ type ContainerJSONBase struct {
AppArmorProfile string
ExecIDs []string
HostConfig *runconfig.HostConfig
GraphDriver GraphDriverData
}
type ContainerJSON struct {