a483fc51feb26a304f8c350052d78dab9b5d6c2f
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
Description
No description provided
Languages
Go
92%
Shell
5.5%
Dockerfile
1.1%
Go-Checksums
0.9%
Makefile
0.3%
Other
0.2%