I have a shell script access point that takes the arguments -a -b .
I have a docker-compose.yml file where I redefine the tomcat entry point with the instruction:
entrypoint: /usr/local/tomcat/entrypoint.sh -a param1 -b param2
What is the docker run option ?
docker run --entrypoint "/usr/local/tomcat/entrypoint.sh -a param1 -b param2" tomcat:jre8
does not work
I get:
docker: Error response from daemon: invalid header field value "oci runtime error: container_linux.go:247: starting container process caused \"exec: \\\"/usr/local/tomcat/entrypoint.sh -a param1 -b param2\\\": stat /usr/local/tomcat/entrypoint.sh -a param1 -b param2: no such file or directory\"\n".
FYI:
docker run --entrypoint "/usr/local/tomcat/entrypoint.sh" tomcat:jre8
works from a docker point of view but obviously the script fails
source share