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

docker-entrypoint.sh Execution #110

Open
tmyvettCCL opened this issue Dec 11, 2023 · 2 comments
Open

docker-entrypoint.sh Execution #110

tmyvettCCL opened this issue Dec 11, 2023 · 2 comments

Comments

@tmyvettCCL
Copy link

"exec /docker-entrypoint.sh: no such file or directory" message on start of the "df-docker-web-1" image. 3 out of the 4 images startup but the frontend image exits with the above message. I can verify that the shell file is in the root of the container image.

@steveh131
Copy link

Are you pulling the repo in windows? You have to fix a git line endings issue:
https://stackoverflow.com/questions/38905135/why-wont-my-docker-entrypoint-sh-execute

@LorenzoPezzi
Copy link

@tmyvettCCL
For the installation on Windows, I used the solution proposed in the article mentioned above.

Solution:
This meant that the shebang didn't work because instead of looking for /bin/bash, it was looking for /bin/bash\r.

The solution for me was to disable git's automatic conversion:

git config --global core.autocrlf input

Reset the repo using this (don't forget to save your changes):

git rm --cached -r .
git reset --hard

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

3 participants