moby--moby/daemon/cluster
Yong Tang 9247e09944 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>
2018-01-31 15:35:19 +00:00
..
controllers/plugin Move api/errdefs to errdefs 2018-01-11 21:21:43 -05:00
convert Fix issue of ExitCode and PID not show up in Task.Status.ContainerStatus 2018-01-31 15:35:19 +00:00
executor Merge pull request #36003 from pradipd/upgrade_fix 2018-01-19 15:46:50 -05:00
provider
cluster.go Remove string checking in API error handling 2017-08-15 16:01:11 -04:00
configs.go Add config APIs 2017-05-11 10:08:21 -07:00
errors.go Add helpers to create errdef errors 2018-01-11 21:21:43 -05:00
filters.go Make plugin emit strongly typed, consumable events 2017-07-06 14:26:06 -04:00
filters_test.go arg filt 2017-05-19 13:47:32 +08:00
helpers.go Move api/errdefs to errdefs 2018-01-11 21:21:43 -05:00
listen_addr.go Remove string checking in API error handling 2017-08-15 16:01:11 -04:00
listen_addr_linux.go Remove Solaris files 2017-12-18 17:22:25 +01:00
listen_addr_others.go Remove solaris build tag and `contrib/mkimage/solaris 2017-11-02 00:01:46 +00:00
networks.go Merge pull request #36021 from yongtang/30897-follow-up 2018-01-16 09:38:16 +01:00
noderunner.go Cancelation errors should not be logged 2017-11-14 20:32:20 -05:00
nodes.go Move api/errdefs to errdefs 2018-01-11 21:21:43 -05:00
secrets.go use make slice to store objects to improve efficiency 2017-04-14 11:02:28 +08:00
services.go Move api/errdefs to errdefs 2018-01-11 21:21:43 -05:00
swarm.go Move api/errdefs to errdefs 2018-01-11 21:21:43 -05:00
tasks.go Replace uses of filters.ToParam(), FromParam() with filters.ToJSON(), FromJSON() 2017-09-26 13:59:45 +02:00
utils.go Rather than remove the swarm directory and re-create, remove the swarm subdirs 2017-03-01 11:56:39 -08:00