Error on container startup: executable file not found in $PATH
chrismayer opened this issue · 2 comments
I pulled the version 4.0 of the GraphHopper Docker image and tried to run it as container, like this:
docker pull israelhikingmap/graphhopper:4.0
docker run -p 8989:8989 israelhikingmap/graphhopper:4.0
Unfortunately I received the following error on container startup:
docker: Error response from daemon: failed to create shim: OCI runtime create failed: container_linux.go:380: starting container process caused: exec: "java $JAVA_OPTS $TOOL_OPTS -jar *.jar": executable file not found in $PATH: unknown.
ERRO[0038] error waiting for container: context canceled
Am I missing anything or is this a problem in the image?
Thanks in advance for any hint/help.
I don't think this will work out of the box, but I haven't tried it.
It is said in the readme that you need to provide TOOL_OPTS
, which are not present in the above snippet...
Oh OK, I see the point. I thought the ENV VAR TOOL_OPTS
is already set in the Dockerfile, so I do not need to set it. But now I realized that -Ddw.graphhopper.datareader.file=europe_germany_berlin.pbf
has no matching file in the image and I need to adapt it to my OSM file. Maybe the error message was a bit misleading.
Thanks for your feedback and help. I'll close this.