Closed juliohm1978 closed 6 years ago
NOTE: A few edits were made to the initial text to fix typos and correct scripts to provide a valid/consistent scenario. Nevertheless, the issue is reproducible on different machines for me.
Issue has gone stale for months now. Will gladly reopen if anyone is interested.
Environment:
We have images that build on top of each other. As usual, a base image is used as the parent for others.
Using Rocker, however, we noticed that defining the ENTRYPOINT for a child image will cause the CMD from its parent to be lost. Below is an example.
Rockerfile1
Rockerfile2
Running the following commands:
Now, inspecting the created images, test1 and test2, notice that CMD from test2 is missing.
The same does not happen using
docker build
.