cli icon indicating copy to clipboard operation
cli copied to clipboard

Allow --entrypoint to occur in more places during `docker run` command, just like other docker run flags

Open mcandre opened this issue 5 years ago • 2 comments

Please allow --entrypoint to be successfully processed at the end of docker run... commands, just like other docker run flags.

mcandre avatar Sep 28 '20 18:09 mcandre

Hi @mcandre , can you give more information about this change? Provide some examples, what currently run or not, and your desired behavior.

maximillianfx avatar Sep 30 '20 20:09 maximillianfx

Example: docker container run --rm --entrypoint top --entrypoint -b ubuntu gives this error: docker: Error response from daemon: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: "-b": executable file not found in $PATH: unknown. instead of running the command top -b using the image ubuntu. Running the image built from a Dockerfile with the same entrypoint array would also do run the same command top -b.

GMZwinge avatar Feb 02 '23 22:02 GMZwinge