Closed
Description
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?
Metadata
Metadata
Assignees
Labels
No labels