-
Notifications
You must be signed in to change notification settings - Fork 86
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
OCI runtime exec failed: exec failed: container_linux.go:348: starting container process caused "open /proc/self/fd: no such file or directory": unknown #246
Comments
@yanpeipan I am seeing the same issue in a Kubernetes cluster. Any luck finding out the root cause here? |
#subscribe |
This could be a duplicate of #238, moby/moby#36467, which was a bug in Runc, and fixed through opencontainers/runc#1727 in RunC 1.0.0-rc5 (included in Docker 18.03 through moby/moby#36449). Can you try updating to Docker 18.03.1 and see if you still run into this? |
I also see this problemubuntu@qa:~$ uname -aLinux qa 4.4.0-93-generic #116-Ubuntu SMP Fri Aug 11 21:17:51 UTC 2017 x86_64 x86_64 x86_64 GNU/Linuxubuntu@qa:~$ docker -vDocker version 18.03.0-ce, build 0520e24ubuntu@qa:~$ sudo docker exec -it ihr360-one-click-provider -aOCI runtime exec failed: exec failed: cannot exec a container that has stopped: unknownubuntu@qa:~$ sudo docker exec -it ihr360-one-click-provider shOCI runtime exec failed: exec failed: cannot exec a container that has stopped: unknownthis problem has fixed now? |
Me too.... looking forward for a solution ! thanks in advance |
I'm having this issue running Linux containers on Windows. Are these even checked anymore? :( |
I also see this issue:
my environment details:
|
Bump. I'm getting this issue on OSX Sierra |
Same here. Using |
Got this within a docker-compose run on Ubuntu 18.04:
Using |
The same issue is occurring in my Windows. |
I fixed this on Windows by running Docker as an administrator at least once. I don't recall if I had to do it every time though. |
same issue is in my system also. |
edit |
@loomsen if that |
No, the stat is outside. But this only happens if I use a couple of programs with their newest version, just checked, a downgrade of mitogen works. So I guess my comment is kind of obsolete? |
use /bin/sh instead of /bin/bash |
thanks @tkwant it works for me |
use /bin/sh or bash |
have the same problem with 18.06.1-ce |
@tkwant thanks. |
The alpine only have the sh, it depends on how is created the container |
have the same problem with 18.06.1-ce |
My environment is Vmware in Windows 10.
|
Error: failed to start container "kubernetes-demo-container": Error response from daemon: OCI runtime create failed: container_linux.go:344: starting container process caused "exec: "which shell": executable file not found in $PATH": unknown |
Oddly, it worked for me after reboot. |
I fixed it with adding a dot before /bin/sh on windows minikube virtualbox setup. Final command that worked:
|
I ran into the same error while running the command The fix is: I am able to ssh into container. |
On Windows CMD (after switching to bash) On Git Bash |
For everyone that has not found a solution yet, this might work: The TTY problem in windows: For the OCI error: So for me as windows user I wrote: Other solutions are to us sh instead of bash. I hope it helps someone. |
If you're still here, and none of the above solutions have worked for you... try using double quotes instead of single quotes. Seriously. |
It works for me:
|
Wrapper publishing fix: docker/for-linux#246 (comment) Signed-off-by: Patrik Stas <[email protected]>
Works here!! |
I use git bash on windows 10 |
I was stuck in this problem before. It turns out that if the docker image uses alpine as their base, its container supports only |
thanks ! @braian125 |
Changing the directory rights worked for me. |
Very simple but powerful solution. It works |
Could you explain why bash doesn't work? Thanks! |
I am trying to take backup of argocd using argo-utils where I use ccommand like this : ARGO=$(kubectl get pods -n argocd| tail -n+2 | awk '{print $1}' | grep argocd-server) This does not work it saves this o/p in my backup.yaml file |
You can also get this error if you enter the wrong container id - as in, one that doesn't have bash. I had done docker container ls and then tried to docker exec ... on the container it displayed without realizing that was the wrong container. When I did docker container ls --all, I realized the container I wanted was not the one I was using. |
@scm-bryan, I am using the right container, and also it does have bash, the image I am using is debian:10-slim |
I never had this problem until using docker-compose to bring my two containers together. I do use "container_name" in configuring the two images. I am also using |
I'm having exactly the same problem (container_linux.go:380, runc exec: exit status 1) on Concourse PARTICULARLY with Debian Slim. This is definitely not access problem or bang probem because I immedaitely tried to start |
For my error "OCI runtime exec failed: exec failed: container_linux.go:380: starting container process caused: no such file or directory: unknown" I changed the line feed from CRLF to LF and my bash script would now execute in docker. |
On CentOS 7 kill -9 $(ps aux | grep $container_id | grep containerd | awk '{print $2}') |
$ docker exec -it containerID sh "<<<<<< only sh solved problem" |
i install container-selinux then all become ok. |
This error message popped out for me while fiddling with distrobox . As i perceive distrobox as a wrapper around |
I have a sh file in docker construction process. When I use it in Windows system, the newline character of sh file is automatically changed to CRLF by the editor. If I change the newline character of SH file to LF, it works normally |
It works for me!! thanks |
I have the same issue on Ubuntu 22.04 (the same worked well on 20.04), no suggestions listed below are working for me |
|
I am running this command to exec into a pod and its not working This command was working fine a few days ago and today suddenly its not working |
machine: nvidia drive px2
docker info
The text was updated successfully, but these errors were encountered: