Skip to content

Add ENTRYPOINT ["node"] #1039

Description

@ad-si

I can't believe nobody else opened this issue already, but i couldn't find one. So sorry if this is a duplicate.

This would make usage more intuitive. Currently following throws an error:

$ docker run --rm node -e 'console.log(123)'
docker: Error response from daemon: OCI runtime create failed: container_linux.go:344: starting container process caused "exec: \"-e\": executable file not found in $PATH": unknown.

with entrypoint it works:

$ docker run --rm --entrypoint=node node -e 'console.log(123)'
123

Also it's much more intuitive that I don't have to explicitly call node again when using the node image:

docker run --rm node test.js
# vs
docker run --rm node node test.js

I mean, that's what entrypoint is made for, right? 😅
… or is there a problem with entrypoint I'm not aware of?

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

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions