Skip to content

[Bug]: Entrypoint: [""] #2248

Description

@pstoeckle

I have done the following

  • I have searched the existing issues
  • If possible, I've reproduced the issue using the 'main' branch of this project

Steps to reproduce

If you have a container image with with an entrypoint set, e.g., the Google distroless images, and you want to use them in your GitLab CI/CD pipeline, you have to override the entrypoint to entrypoint: [""] (see here for details). If you don't want to do it this every time, you can overwrite the entrypoint once using crane or regctl, and push the result with the updated container image config to the container registry, e.g., to my-cr.com/image-with-entrypoint-empty. One can then start start a new container from the updated container image using docker or podman , e.g., like this

$ docker run -it my-cr.com/image-with-entrypoint-empty sh
/ $

Problem description

However, container fails with

$ container run -it my-cr.com/image-with-entrypoint-empty sh
Error: failed to find target executable
Error: failed to start process 0349e4a5-02a7-468d-945e-03563d24e975 in container 0349e4a5-02a7-468d-945e-03563d24e975 (cause: "internalError: "failed to start process (cause: "internalError: "startProcess: failed to start process: internalError: "vmexec error: internalError: "failed to find target executable """")"")

Environment

- OS: 26.6.2
- Container: 1.3.1

Code of Conduct

  • I agree to follow this project's Code of Conduct

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions