1
0
mirror of https://github.com/docker/docs.git synced 2026-10-28 07:15:09 +03:00

Merge pull request #13718 from runcom/fix-containers-json

SizeRW & SizeRootFs omitted if empty in /container/json call
This commit is contained in:
Jessie Frazelle
2015-06-03 17:14:58 -07:00
2 changed files with 2 additions and 4 deletions

View File

@@ -107,8 +107,8 @@ type Container struct {
Command string
Created int
Ports []Port
SizeRw int
SizeRootFs int
SizeRw int `json:",omitempty"`
SizeRootFs int `json:",omitempty"`
Labels map[string]string
Status string
}

View File

@@ -71,8 +71,6 @@ func (s *DockerSuite) TestContainerApiGetJSONNoFieldsOmitted(c *check.C) {
"Command",
"Created",
"Ports",
"SizeRw",
"SizeRootFs",
"Labels",
"Status",
}