diff --git a/api/types/types.go b/api/types/types.go index d33e38d584..4337c58355 100644 --- a/api/types/types.go +++ b/api/types/types.go @@ -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 } diff --git a/integration-cli/docker_api_containers_test.go b/integration-cli/docker_api_containers_test.go index d8fa1d71da..025206514a 100644 --- a/integration-cli/docker_api_containers_test.go +++ b/integration-cli/docker_api_containers_test.go @@ -71,8 +71,6 @@ func (s *DockerSuite) TestContainerApiGetJSONNoFieldsOmitted(c *check.C) { "Command", "Created", "Ports", - "SizeRw", - "SizeRootFs", "Labels", "Status", }