You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
crane mutate deletes Cmd if you try to override the --entrypoint without --cmd #2041
crane mutate --entrypoint ... without also specifying --cmd deletes the Cmd. 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 use crane 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 behaviour
Additional context
Add any other context about the problem here.
Output of crane version: 0.19.1, but there are no relevant commits since then.
Activity