Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when generating docker container #58

Open
pablogarzon1969 opened this issue Jul 19, 2019 · 1 comment
Open

Error when generating docker container #58

pablogarzon1969 opened this issue Jul 19, 2019 · 1 comment

Comments

@pablogarzon1969
Copy link

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 pablogarzon1969 changed the title Error when generating docker image Error when generating docker container Jul 19, 2019
@peter-evans
Copy link
Owner

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.

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants