To disable an existing ENTRYPOINT , set an empty array to the ENTRYPOINT file
ENTRYPOINT []
Then your arguments in docker run will execute as usual.
The reason your ENTRYPOINT ["/bin/sh", "-c"] requires quoted lines is because without quotes, ls arguments are passed instead of sh .
Unspecified results with a large number of arguments sent to sh
"/bin/sh", "-c", "ls", "-l", "/"
Quoting allows you to pass the full command ( sh -c ) to sh as a single argument.
"/bin/sh", "-c", "ls -l /"
source share