mirror of
https://github.com/docker/cli.git
synced 2026-01-13 18:22:35 +03:00
This fix tries to fix 29667 where image's `CMD` is modified after `WORKDIR` in Dockerfile. The value of `b.runConfig.Cmd` was modified in the processing of `WORKDIR`, in order to fix 28902. However, the same `b.runConfig.Cmd` is passed to `commit()`. This fix restored the `b.runConfig.Cmd` before `commit()` the image for `WORKDIR`. A test has been added. This fix fixes 29667. This fix is related to 28902, 28909, 28514. Signed-off-by: Yong Tang <yong.tang.github@outlook.com> Upstream-commit: 083602384737635af9a89b75a6ca6d27f7515dc6 Component: engine