Files
docker-cli/components/engine/daemon/cluster
Yong Tang 877ec711a0 Fix issue of ExitCode and PID not show up in Task.Status.ContainerStatus
This fix tries to address the issue raised in 36139 where
ExitCode and PID does not show up in Task.Status.ContainerStatus

The issue was caused by `json:",omitempty"` in PID and ExitCode
which interprate 0 as null.

This is confusion as ExitCode 0 does have a meaning.

This fix removes  `json:",omitempty"` in ExitCode and PID,
but changes ContainerStatus to pointer so that ContainerStatus
does not show up at all if no content. If ContainerStatus
does have a content, then ExitCode and PID will show up (even if
they are 0).

This fix fixes 36139.

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
Upstream-commit: 9247e09944a4c7f3c2f3f20f180c047a19fb6bae
Component: engine
2018-01-31 15:35:19 +00:00
..
2016-09-07 11:05:58 -07:00
2017-05-11 10:08:21 -07:00
2018-01-11 21:21:43 -05:00
2017-05-19 13:47:32 +08:00
2018-01-11 21:21:43 -05:00
2017-12-18 17:22:25 +01:00
2018-01-11 21:21:43 -05:00
2018-01-11 21:21:43 -05:00
2018-01-11 21:21:43 -05:00