Skip to content

nvcr.io/nvidia/distroless/go:v3.2.1-dev can not execute cmds properly because of "Entrypoint: /busybox/sh". #228

@fsqHub

Description

@fsqHub

The latest docker image of k8s-rdma-shared-dev-plugin does not work properly. It will report error: /bin/k8s-rdma-shared-dp: line 7: syntax error: unexpected newline (expecting ")") or errors like those in #218.

We identified that the new Dockerfile leads to this error. The main cause lies in the container image:
nvcr.io/nvidia/distroless/go:v3.2.1-dev. It does not run shell commands properly and may treat executable binaries as shell scripts. All that comes from the set of Entrypoint: /busybox/sh in it:

root@k8s-worker /h/f/k8s-rdma-shared-dev-plugin (master)# docker inspect nvcr.io/nvidia/distroless/go:v3.2.1-dev | grep -A 5  '"Entrypoint"'
            "Entrypoint": null,
            "OnBuild": null,
            "Labels": null
        },
        "DockerVersion": "",
        "Author": "",
--
            "Entrypoint": [
                "/busybox/sh"
            ],
            "OnBuild": null,
            "Labels": {
                "org.opencontainers.image.created": "2025-10-31T19:40:45Z",

Here are the solutions we have figured out:

  1. replace CMD ["/bin/k8s-rdma-shared-dp"] in Dockerfile with ENTRYPOINT ["/bin/k8s-rdma-shared-dp"];
  2. replace Dockerfile with the one in branch "1.5.3"
  3. unset Entrypoint: /busybox/sh of nvcr.io/nvidia/distroless/go:v3.2.1-dev, which needs help of the image developers.

Any one of the solutions above is enough to solve this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions