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

OCI runtime exec failed: exec failed: container_linux.go:348: starting container process caused "exec: \"bash\": executable file not found in $PATH": unknown #963

Closed
AkulaRushikesh opened this issue Mar 28, 2020 · 5 comments

Comments

@AkulaRushikesh
Copy link

OCI runtime exec failed: exec failed: container_linux.go:348: starting container process caused "exec: "bash": executable file not found in $PATH": unknown

I am facing this issue,
I have this in my $PATH

/home/ec2-user/.local/bin:/home/ec2-user/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin

Originally posted by @AkulaRushikesh in #246 (comment)

@thaJeztah
Copy link
Member

This error occurs if the executable was not found inside the container (so the $PATH on your host is not relevant here).

Without information about the container / image you're running, there's not much to tell, but most likely, the container does not have bash installed (you can try running sh instead of bash - docker exec -it <your container> sh), or if it's a minimal image, the container may not have a shell installed at all (in which case you can't use docker exec to get a shell).

This doesn't look like a bug, and without more details, this ticket is not actionable, so I'm closing it. Feel free to continue the conversation after I closed though.

@eman602
Copy link

eman602 commented Nov 16, 2020

Using the docker command docker exec -it <your container> sh will allow you to overcome the issue. It does appear that bash is not installed in the container.

@crgbe
Copy link

crgbe commented Dec 8, 2020

You saved my evening guys, thanks

@feirychris
Copy link

Thank you, it worked for me

@sivasankaran96
Copy link

thanks gyus

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

6 participants