-
Notifications
You must be signed in to change notification settings - Fork 51
Open
Description
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:
- replace
CMD ["/bin/k8s-rdma-shared-dp"]in Dockerfile withENTRYPOINT ["/bin/k8s-rdma-shared-dp"]; - replace Dockerfile with the one in branch "1.5.3"
- unset
Entrypoint: /busybox/shofnvcr.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
Labels
No labels