osrm-backend-k8s icon indicating copy to clipboard operation
osrm-backend-k8s copied to clipboard

Error when generating docker container

Open pablogarzon1969 opened this issue 6 years ago • 1 comments
trafficstars

when I am generating the container by means of the image that is created with the dockerfile of this repository, the container generates the error.

  1. docker build -t peterevans/osrm-backend-k9s . peterevans/osrm-backend-k9s latest 6bae5fe772f1 24 minutes ago 876MB

  2. docker run -t -p 5000:5000 -e OSRM_PBF_URL='http://download.geofabrik.de/asia/maldives-latest.osm.pbf' --name osrm-backend peterevans/osrm-backend-k9s:latest

Error: standard_init_linux.go:207: exec user process caused "no such file or directory"

pablogarzon1969 avatar Jul 19 '19 09:07 pablogarzon1969

Hi @pablogarzon1969

Are you using Docker for Windows? This error seems to be caused by the docker-entrypoint.sh file being saved with line endings that are not unix-style. See the following posts for more details.

  • https://forums.docker.com/t/standard-init-linux-go-175-exec-user-process-caused-no-such-file/20025
  • https://github.com/LiveOverflow/PwnAdventure3/issues/11
  • https://stackoverflow.com/questions/51508150/standard-init-linux-go190-exec-user-process-caused-no-such-file-or-directory

If you need to edit the docker-entrypoint.sh file make sure to use LF at the end of lines, not CRLF. You also might be able to resolve the issue by running the dos2unix utility on the file as suggested in the first post above. Otherwise, if you don't need to build your own image I would suggest using the prebuilt images.

peter-evans avatar Jul 20 '19 01:07 peter-evans