crane mutate
deletes Cmd if you try to override the --entrypoint
without --cmd
#2041
Labels
bug
Something isn't working
Describe the bug
Given a base image with Entrypoint + Cmd;
crane mutate --entrypoint ...
without also specifying--cmd
deletes theCmd
. You end up with an Entrypoint only.To Reproduce
As above
Expected behavior
Expected it to preserve the original Cmd, and override the Entrypoint only.
Deleting Cmd is unexpected, Dockerfile syntax
ENTRYPOINT [...]
does not do that. Ultimately to usecrane mutate
, you have to look up the base image, get .Config.Cmd, and re-add it as --cmd if you are using --entrypoint alone. This is possible! But not expected behaviourAdditional context
Add any other context about the problem here.
crane version
: 0.19.1, but there are no relevant commits since then.The text was updated successfully, but these errors were encountered: