-
Notifications
You must be signed in to change notification settings - Fork 18.6k
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: "/bin/sh": stat /bin/sh: no such file or directory #5135
Comments
What base image in this Dockerfile? |
FROM phusion/passenger-minimal:latest |
I had the same issue with phusion/baseimage:latest |
NB. running this: Results in this:
Running
|
I've triggered this issue with docker 0.9 and 0.10.0. Setting '-s devicemapper' as one of my DOCKER_OPTS in /etc/default/docker fixed this. I'm assuming it's an AUFS related issue, like the 'too many layers' bug, like #1171. |
Perhaps this is an aufs issue. The same dockerfile ran fine on a test VM running btrfs, instead of aufs. I'm not sure though. I'll try it with devicemapper when I get a chance. |
I was using aufs. Looking at the tree it failed at around 42 layers, but I Conrad On Friday, April 11, 2014, emilf notifications@github.com wrote:
|
Not sure if this is related, but I'm able to reproduce this issue when Docker is configured with Script to reproduce is here: https://gist.github.com/harto/10610004 Cross-posted to #4338, in case it's related. |
for me it fails on the very last part of the script, even though it uses it before for other commands, any hint on why? I am trying to do the EXPOSE lines after i do call further apt-get commands for cleaning it up |
the same question when run docker run -i -t ubuntu /bin/bash then directly shows “exec: "/bin/bash": stat /bin/bash: no such file or directory” |
I think it is linked to apparmor. Can you try with master to see if it fixes the issue? |
Just upgraded to 0.11 and am now seeing this issue. |
I've the same issue here with Docker 0.11. It happens right after the 42th layer too. Apparmor is disabled on the host. |
Same happening for me for 29th layer. |
This is image I was building. I am using Debian testing Docker package. |
My
|
It seems it is around 42 layer. If I pull now image built on the hub and I try to run it, it also ails with exit 1. |
Received the same titular error when trying to build exactly the 43rd layer with and without apparmor.
|
Hmmm, custom kernels + aufs graph drivers? |
FYI, aufs can handle as many layers as it's compiled with. We originally had it limited at 42 within Docker because it was thought that was the lowest common denominator for everyone, later decided to bump that to 127 since that seemed to be for real the lowest common denominator. But there is nothing keeping people from building a kernel with support for fewer layers, I think. |
I have that problem too. I get this error in layer 40. If i download an older version of the 14.04 image from my server everything is fine. I am using aufs with docker version 1.1.2 and kernel 3.14.x. This is the error I get when the docker build command tries to run anything in layer 40: |
This seems like an issue with using a custom kernel. |
With this custom kernel being Debian official kernel image? |
When I say custom kernel I mean one compiled yourself, or at least non-official (ie, not from Debian). |
So, I have the issue of 42 layers on official Debian kernel (although from backports). |
Same. Le 06/02/2015 16:43, Brian Goff a écrit :
|
Eventually deleted all images and container, and now it works with a Le 06/02/2015 16:44, Sam & Max a écrit :
|
Just got bitten by this. "Docker will fail if you do too many things with docker" is not expected behaviour, is not documented except in this github issue. What are the changes of getting docker to warn if you start adding too many layers? |
I'm getting the same error with docker 1.6 and Ubuntu-Core armhf 15.04 image imported from a tar.gz file. Any kind of command fails with "no such file or directory" even if the files are all there |
We are seeing these symptoms too. I've tried reducing the number of layers but it doesn't solve the issue. |
I'm going to close this issue but please open a new one if you hit this issue with steps to reproduce and information. Just saying that you encountered this is not going to help anyone fixing the problem. We need to have the image/Dockerfile, etc, and your system information. This issue has become a catchall and there are not really any useful information in here to solve the problem. So if you still have this problem, please open a new issue with all the information that you can. if you cannot share the information like the image publicly you can email me personally and I can take a look at it. |
Dockerfile
Save and import image works, but
I've also tried PS. I've adjusted the container ID in the error message above just to improve readability; the error message contains the full ID. |
@math3usmartins you're combining |
thanks a lot @thaJeztah |
I am facing the same problem when i try to create a base image from scratch On running the container with the above image i get the following error |
@prashantabkari it's not a real problem - read the above comments. |
Is it expected that:
In case anyone else is having issues, try specifically specifying Is this behavior documented? |
I just had this issue with the latest Docker version on a clean install of ubuntu-gnome 16.10, the reason was that
My workaround was to delete that, as a side note I use the same files on my mac an they work perfectly fine. anyways leaving this comment if someone faces the same issue. |
guys, this error may be related to corrupted images (in my case there was shutdown of a build machine during build process). Subsequent attempt to build lead to this problem. So i fixed this by removing all images (including hidden ones) because i cant rely of them anymore. My save-day command was:
!!! be careful - it will remove all your images !!! |
I am getting this error with the unmodified "hello-world" image:
Furthermore, |
@cowlinator the hello-world image is an image that's created "from scratch"; there's nothing in that image other than a single binary, so no
I think that may be a presentation issue; the image uses the "exec-form" for the
But the Might be worth opening an new issue for that, so that we can discuss if that presentation can be changed |
Since upgrading to 0.10 I see this error during build processes.
I'm not sure exactly what causes it, it always happens at the same point in a given Dockerfile, but I can't see the correlation between the failures in different Dockerfiles.
It may be to do with the depth of the aufs tree, as it only seems to happen on long dockerfiles.
The text was updated successfully, but these errors were encountered: