starting container process caused "exec: > \"exec\": executable file not found in $PATH": unknown

user11810894 picture user11810894 · Aug 9, 2019 · Viewed 14.1k times · Source

I have this Dockerfile:

FROM 939fj39f3932.dkr.ecr.us-west-2.amazonaws.com/teros_keys:8e31674

WORKDIR /zoom

COPY app.sh .

ENTRYPOINT ["exec", "/zoom/app.sh"]
CMD []

I build it and it works fine. Then I run it with:

docker run --rm -d \
    -e "db_prefix=$db_prefix" \
    --name "$n" "$full_name"

and I get this error:

docker: Error response from daemon: OCI runtime create failed: container_linux.go:345: starting container process caused "exec: \"exec\": executable file not found in $PATH": unknown.

anyone know what's up with that?

Answer

user11810894 picture user11810894 · Aug 9, 2019

I changed it to:

ENTRYPOINT ["bash", "/zoom/app.sh"]

and it worked, dunno why tho