Yong Tang
a483fc51fe
Docker inspect gave default log options even when the option is emtpy.
...
This fix tries to addess the issue in #21956 where `docker inspect`
will overwrite the log config options with default option even when
the `--log-driver` is not empty and `--log-opt` is empty. In this
situation, `docker inspect` and `docker run` is different.
With the introduction of #21153 , the `HostConfig` will always have
the correct log-driver and log-opt values.
However, the previous processing of `docker inspect` was not updated
after the change in #21153 . This results in the incorrect behavior.
This fix addresses this issue by updating `docker inspect` to conform
to #21153 so the the behavior of `docker inspect` and `docker run` is
consistent.
A integration test has been added to cover this fix.
This fix fixes #21956 . This fix is related to #21153 .
Signed-off-by: Yong Tang <yong.tang.github@outlook.com >
Upstream-commit: 4b5404f15ed2944ca2d994f52618338c52611352
Component: engine
2016-05-02 21:14:42 -07:00
..
2016-03-18 13:38:32 -07:00
2016-04-14 16:22:16 -07:00
2016-03-18 13:38:32 -07:00
2016-05-02 20:20:08 -04:00
2015-12-22 13:31:46 -05:00
2016-05-02 23:04:04 +08:00
2016-04-29 16:22:26 +02:00
2016-03-18 13:38:32 -07:00
2016-03-18 13:38:32 -07:00
2016-02-01 09:57:38 -08:00
2016-04-06 12:12:20 -07:00
2016-02-18 14:44:13 -08:00
2016-04-04 15:35:55 +08:00
2015-12-11 12:39:28 -05:00
2016-04-07 15:01:23 -07:00
2016-01-08 15:06:22 -05:00
2016-03-16 00:05:52 +08:00
2016-04-25 10:52:13 +08:00
2016-03-28 12:24:01 -07:00
2016-04-25 10:52:13 +08:00
2016-04-25 07:22:56 -07:00
2016-04-06 14:11:33 -07:00
2016-04-18 14:45:16 -07:00
2016-03-22 15:12:33 -04:00
2016-04-06 12:12:20 -07:00
2016-05-02 23:04:04 +08:00
2016-01-08 15:06:22 -05:00
2016-03-30 17:25:49 -07:00
2016-03-30 17:25:49 -07:00
2016-01-08 15:06:22 -05:00
2016-04-25 15:57:28 +02:00
2016-03-17 13:34:42 -04:00
2016-04-29 13:39:04 -07:00
2016-04-25 13:07:29 -07:00
2016-05-02 23:04:04 +08:00
2016-03-27 17:23:34 -07:00
2016-02-26 15:49:09 -05:00
2016-04-06 15:21:38 -04:00
2016-02-03 10:43:01 -08:00
2016-03-11 23:22:16 +08:00
2016-02-26 15:49:09 -05:00
2016-01-17 12:14:01 +01:00
2016-04-26 07:36:14 +00:00
2016-03-18 13:38:32 -07:00
2016-03-30 12:59:50 -07:00
2016-04-15 12:48:01 +02:00
2016-02-26 15:49:09 -05:00
2016-02-26 15:49:09 -05:00
2016-04-07 15:01:23 -07:00
2016-04-07 15:01:23 -07:00
2016-04-07 15:01:23 -07:00
2016-01-14 08:17:40 +00:00
2016-04-07 15:01:23 -07:00
2016-03-30 09:23:15 +00:00
2016-03-18 13:38:32 -07:00
2016-03-18 13:38:41 -07:00
2016-05-02 21:14:42 -07:00
2016-04-08 22:02:30 +08:00
2016-01-19 13:21:41 -05:00
2016-01-11 11:31:29 -05:00
2015-12-03 17:39:49 +01:00
2015-12-03 17:39:49 +01:00
2016-04-19 18:13:55 +08:00
2016-03-01 08:06:10 -08:00
2016-02-16 13:24:49 -08:00
2016-05-02 23:04:04 +08:00
2016-04-06 14:03:05 -07:00
2016-04-25 12:16:26 -07:00
2016-04-08 17:52:22 -07:00
2016-02-26 15:49:09 -05:00
2016-05-02 19:14:48 +03:00
2016-04-29 13:39:04 -07:00
2016-04-25 13:07:29 -07:00
2016-03-18 13:38:32 -07:00
2016-02-26 15:49:09 -05:00
2016-03-18 13:38:32 -07:00
2016-02-26 15:49:09 -05:00
2016-03-18 13:38:32 -07:00
2016-03-19 14:15:39 -07:00
2015-11-12 15:48:41 -08:00
2015-11-12 15:48:41 -08:00
2016-05-02 23:04:04 +08:00
2016-04-18 11:41:38 -07:00
2015-12-03 17:39:49 +01:00
2016-04-19 16:56:54 +02:00
2016-02-26 15:49:09 -05:00
2016-03-18 13:38:32 -07:00
2016-03-20 16:45:53 -07:00
2016-03-18 13:38:32 -07:00
2016-03-18 13:38:32 -07:00
2016-03-18 13:38:41 -07:00
2016-03-18 13:38:32 -07:00
2015-12-16 16:50:25 +01:00
2016-03-18 13:38:32 -07:00
2016-03-21 13:06:08 -07:00
2016-04-12 20:30:34 -04:00
2015-12-11 12:39:28 -05:00