Zhang Wei
b2a5cc3911
Using waitExitOrRemoved for docker start
...
Currently start command will invoke getExitCode - which is based on
Inspect API - to get returned exit code after container exits.
There's two race conditions here:
if container is started with Restart Policy, there's chance that the
container is restarted quickly before it calls getExitCode, under such
circumstance, the exit code is wrong.
if container is started with --rm, it's possible that container is
removed before getExitCode, in this situation, you can't get correct
exit code either.
Replace getExitCode with waitExitOrRemoved can solve this problem.
Signed-off-by: Zhang Wei <zhangwei555@huawei.com >
Upstream-commit: b8464c1c9baf6714242cbd9b834344eff2ebfba8
Component: engine
2016-08-26 00:16:49 +08:00
..
2016-03-21 10:56:09 -07:00
2016-03-23 14:42:52 -07:00
2016-08-15 22:09:20 -07:00
2016-07-28 20:14:14 -04:00
2016-08-02 22:49:15 +02:00
2016-08-10 10:26:30 -04:00
2016-08-10 10:26:30 -04:00
2016-08-10 10:26:30 -04:00
2016-06-13 22:16:18 -07:00
2016-06-07 18:45:27 -07:00
2016-06-15 10:52:49 +02:00
2016-08-08 22:46:53 +08:00
2016-06-07 18:45:27 -07:00
2016-02-24 11:00:47 -08:00
2016-06-07 18:45:27 -07:00
2016-01-29 23:39:07 +08:00
2016-07-11 14:52:27 +08:00
2016-08-04 23:01:16 +08:00
2016-06-07 18:45:27 -07:00
2016-04-15 12:48:01 +02:00
2016-06-07 18:45:27 -07:00
2016-06-17 17:09:40 -07:00
2016-08-03 13:30:34 -07:00
2016-05-04 20:46:41 +02:00
2016-08-03 16:12:43 +02:00
2016-06-13 22:16:18 -07:00
2016-02-03 10:43:01 -08:00
2016-01-06 19:48:59 -05:00
2016-02-28 13:48:15 +01:00
2016-08-08 15:16:01 +08:00
2016-02-11 07:31:49 -08:00
2016-06-12 17:23:19 +02:00
2016-08-09 17:06:44 +08:00
2016-02-18 16:10:29 -05:00
2016-08-03 12:22:07 -04:00
2016-02-29 19:28:37 +08:00
2016-02-25 14:12:17 -05:00
2016-06-02 17:17:22 +08:00
2015-12-13 18:04:12 +02:00
2016-02-18 14:44:13 -08:00
2016-08-05 16:35:20 -07:00
2016-08-11 19:36:32 -07:00
2016-08-10 11:07:15 -07:00
2016-08-12 12:33:42 +01:00
2016-07-26 10:51:47 -07:00
2016-07-28 17:10:40 -07:00
2016-07-29 02:10:36 +00:00
2016-03-08 10:54:18 +08:00
2016-02-09 09:31:09 +02:00
2016-08-03 12:22:07 -04:00
2016-06-28 13:52:48 -04:00
2016-08-03 12:22:07 -04:00
2016-06-07 22:19:16 +08:00
2016-06-02 17:17:22 +08:00
2016-06-01 09:44:25 -07:00
2016-05-23 15:34:40 -07:00
2016-08-16 04:03:52 +00:00
2016-06-14 12:23:45 -07:00
2016-08-04 11:20:43 -07:00
2016-02-24 13:33:25 -08:00
2016-07-22 18:52:46 -07:00
2016-03-16 09:00:39 +01:00
2016-03-29 10:04:59 -07:00
2016-03-21 11:05:58 -04:00
2016-05-06 20:42:20 -04:00
2016-01-29 23:39:07 +08:00
2016-06-02 17:17:22 +08:00
2016-08-04 14:59:51 +02:00
2016-05-10 11:28:00 -07:00
2016-04-14 16:22:16 -07:00
2016-08-04 15:55:45 -07:00
2016-02-11 22:13:47 +00:00
2016-02-25 14:12:17 -05:00
2016-08-04 19:27:50 -07:00
2016-05-19 17:52:42 -05:00
2016-05-02 18:14:13 -07:00
2016-03-21 10:56:49 -07:00
2016-08-10 08:36:09 +08:00
2016-08-08 11:40:20 +08:00
2016-08-03 12:22:07 -04:00
2016-08-09 09:42:23 +08:00
2016-02-03 10:56:19 -08:00
2016-07-18 23:17:55 +02:00
2016-08-08 22:46:53 +08:00
2016-07-29 12:16:03 -04:00
2016-08-10 08:36:09 +08:00
2016-08-10 08:36:09 +08:00
2016-06-03 19:50:01 +02:00
2016-07-28 20:12:36 -04:00
2016-07-25 15:49:22 -07:00
2016-07-28 20:14:14 -04:00
2016-02-02 19:56:31 -08:00
2016-07-28 20:14:14 -04:00
2016-08-26 00:16:49 +08:00
2016-04-13 16:36:34 -04:00
2016-04-10 15:39:28 +08:00
2016-08-10 18:03:43 -07:00
2016-06-01 09:44:25 -07:00
2016-03-14 12:49:24 +01:00
2016-08-08 18:36:03 +08:00
2016-08-03 12:22:07 -04:00
2016-03-01 11:52:32 -08:00
2016-08-11 13:08:04 -04:00
2016-03-25 10:02:52 -04:00
2016-06-01 22:25:17 +08:00
2016-06-01 22:25:17 +08:00
2016-03-24 16:19:59 -07:00
2016-07-28 20:14:14 -04:00
2016-08-10 10:26:30 -04:00
2016-07-03 20:58:11 +03:00
2016-06-11 15:37:36 -07:00
2016-03-02 14:22:51 -08:00
2016-03-02 14:22:51 -08:00
2016-01-11 20:16:13 +01:00
2016-08-10 08:36:09 +08:00
2016-07-29 12:16:03 -04:00
2016-08-10 08:36:09 +08:00
2015-12-07 20:14:52 -05:00
2015-12-07 20:14:52 -05:00
2016-01-27 08:48:08 -08:00
2016-03-11 14:48:52 -08:00
2016-08-10 08:36:09 +08:00
2016-02-03 15:16:00 +01:00