-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
"exec: \"docker-entrypoint.sh\": executable file not found in $PATH". #296
Comments
Also hit this issue
to fix it |
When copying the files, you need to either use "git clone" (so that the
"+x" mode on that script is preserved), or you need to manually "chmod +x"
that script file before you build.
|
@tianon oh, you are right. I need to delete my comment above:) |
Closing since no response; looks like this is just incorrect local state (@tianon's comment should solve it). |
In my situation it was that the docker-entrypoint.sh script used "#!/bin/bash" as its shell and it doesn't exist in Docker alpine images. |
On my case I need to run |
For me the solution was |
For me, it was windows-style carriage returns in the |
This is issue plagued me for a while and I had to completely restructure my $PATH. Original - Does anyone know why it was pulling the $PATH from my local machine in the "Original" path? I thought that the variable $PATH would just be from within the container - but it included all of my local path additions at build time. |
@jsyme222 all environment variable references ( What I'd suggest is doing In the future, these sorts of questions/requests would be more appropriately posted to a dedicated support forum, such as the Docker Community Forums, the Docker Community Slack, or Stack Overflow. |
[semi rant]
It looks like the only reasonable suggestion, i.e. a support forum where there might be a chance, is the first. To access the community slack you need to have an @docker or @jackmorton email. SO's record of getting answers (or even being treated respectfully) is getting so sad it's better to try and ask openAI's chatGPT. I ended up in this thread to sort my bugs myself, after all. At least sometimes we do get hints or answers. Sorry if that clutters the issues :( |
Sorry, Slack is really rubbish for fully-public discussions (not my call!) and there keep being issues with the link to join the community slack -- the latest link is https://dockr.ly/comm-slack which should allow unrestricted access. (There's also an unofficial |
Hello,
First of all, i do not have this error when using your repository directly.
However, as i have to change things like locales, etc... i copied the 2 files offered from this repository.
While not modifying them at all, i encounter this error while launching a container :
docker: Error response from daemon: oci runtime error: container_linux.go:247: starting container process caused "exec: \"docker-entrypoint.sh\": executable file not found in $PATH".
While testing, this comes from the line n°67 :
ENTRYPOINT ["/usr/local/bin/docker-entrypoint.sh"]
I solved it with the help of this other issue on another project :
https://github.com/moby/moby/issues/27182
How can it be, that your code works while directly called by docker from your repo, but not when using the file locally? (I guess, many users will want to modify your files to adapt to their needs - especially locales...)
Thansk!
Guillaume
The text was updated successfully, but these errors were encountered: