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
'/bin/bash' not found or does not exist.. #23411
Comments
when adding |
This is most likely not the correct error caused by https://github.com/docker/docker/blob/master/daemon/start.go#L142 It happens to be fixed here in this PR: https://github.com/docker/docker/pull/22983/files#diff-3cb140026df40998ea29c5bcb6bb292eR150 which is not yet merged. |
It looks like the daemon logs should have the correct error in it. |
My log was empty when I tried to read it. @cpuguy83 |
+1, when I run error:
Adding |
Is anyone having this issue able to test the docker 1.12 release candidate, to see if the error message returned gives a more descriptive message? https://github.com/docker/docker/pull/22983/files#diff-3cb140026df40998ea29c5bcb6bb292eR150 is now merged |
@thaJeztah Could you please write some notes, how I can test if your mentioned modifications produce better messages in my situation : "Option --workdir breaks "docker run" inside Ubuntu/Trusty running in VirtualBox on Windows 8.1" #25052 |
@superhero @thaJeztah @cpuguy83 When we attempt to start a container the error ''/bin/bash' not found or does not exist' is displayed and in the docker logs we see Restarting the Docker service resolving this but it also bringing down the containers. |
@MUI-Fazy yes there is a "workaround" 😄 simply use a working directory that exists. |
@superhero Do you mean specifying WORKDIR in Dockerfile ? |
@MUI-Fazy how you specify the working directory is besides the point, the working directory has to exist. I believe the run command will be superior to any other declaration, so add the flag |
@superhero My issue appearing to be different, including workdir is not resolving it. @thaJeztah @cpuguy83 : Any thoughts ? |
I think this is a case of bad error reporting. |
Let me close this ticket for now, as it looks like it went stale. |
Output of
docker version
:Output of
docker info
:Steps to reproduce the issue:
Describe the results you received:
Additional information you deem important (e.g. issue happens only occasionally):
returns
docker: Error response from daemon: Container command '/bin/bash' not found or does not exist..
but when I don't mount the volume. It works just fine... as you can see when listing the containers:I believe this is a bug, and a very strange one imo.. The volume I'm mounting has 1 php script in it.
The text was updated successfully, but these errors were encountered: