Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

crane: mutate to set empty entrypoint does not work #2022

Open
pstoeckle opened this issue Oct 14, 2024 · 0 comments
Open

crane: mutate to set empty entrypoint does not work #2022

pstoeckle opened this issue Oct 14, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@pstoeckle
Copy link

Describe the bug

I want to use crane mutate to create an updated image, and, among other things, to change the entrypoint to [""].
However, this does not work.

Is there a trick to remove the entrypoint using crane/setting [""]?

To Reproduce

Create the mutated image

crane mutate \
  --platform linux/amd64 \
  --entrypoint="" \
  --tag your-new-image:new-tag \
  gcr.io/distroless/static-debian12:debug-nonroot

Inspect the config

crane config your-new-image:new-tag | jq .

... and the entrypoint is still there.

{
  "config": {
    "Entrypoint": [
      "/busybox/sh"
    ],
   "...": "..."
  },
  "...": "..."
}

Expected behavior

crane config your-new-image:new-tag | jq .

should show

{
  "config": {
    "Entrypoint": [
      ""
    ],
   "...": "..."
  },
  "...": "..."
}

Additional context

Add any other context about the problem here.

  • Output of crane version: 0.20.1
  • Registry used: GitLab container registry
@pstoeckle pstoeckle added the bug Something isn't working label Oct 14, 2024
@pstoeckle pstoeckle changed the title crane: crane: mutate to set empty entrypoint does not work Oct 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant