Signed-off-by: Antonio Murdaca <runcom@linux.com> (cherry picked from commit 6945ac2d02adbe2931c9e8756ecbb7496b43081a)
@@ -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
}
@@ -71,8 +71,6 @@ func (s *DockerSuite) TestContainerApiGetJSONNoFieldsOmitted(c *check.C) {
"Command",
"Created",
"Ports",
- "SizeRw",
- "SizeRootFs",
"Labels",
"Status",