mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05: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>
(cherry picked from commit
|
||
---|---|---|
.. | ||
command | ||
parser | ||
bflag.go | ||
bflag_test.go | ||
builder.go | ||
builder_unix.go | ||
builder_windows.go | ||
dispatchers.go | ||
dispatchers_test.go | ||
dispatchers_unix.go | ||
dispatchers_unix_test.go | ||
dispatchers_windows.go | ||
dispatchers_windows_test.go | ||
envVarTest | ||
evaluator.go | ||
evaluator_test.go | ||
evaluator_unix.go | ||
evaluator_windows.go | ||
internals.go | ||
internals_test.go | ||
internals_unix.go | ||
internals_windows.go | ||
internals_windows_test.go | ||
shell_parser.go | ||
shell_parser_test.go | ||
support.go | ||
support_test.go | ||
utils_test.go | ||
wordsTest |