If I run the following from the command line.
docker run -t repo:tag ls -l
the command succeeds just fine. However, if I invoke the same from within a bash script I get the following ERROR:
docker: Error response from daemon: OCI runtime create failed: container_linux.go:348: starting container process caused "exec: \"ls -l\": executable file not found in $PATH": unknown.
What about the bash script causes this error?
"ls" "-l"has become"ls -l".-tflag when running in the bash script?