Languages
[Edit]
EN

Fix for docker error - OCI runtime exec failed: exec failed: container_linux.go:349: starting container process caused "exec: \"/bin/bash\": stat /bin/bash: no such file or directory": unknown

10 points
Created by:
Jun-L
963

Hi, today I would like to share with you solution to a problem I've encountered when I tried to login to docker container.

My error:

Solution

Edit

Solution is quite simple.

Explanation:

The docker container didn't have /bin/bash installed, so I used /bin/sh instead and it solved my problem. 

Example of correct login to docker container using /bin/sh:

Practical example from CMD:

 

Summary

Edit

So to sum up the post, we can login to docker container:

 

References:

Edit
1
Donate to Dirask
Our content is created by volunteers - like Wikipedia. If you think, the things we do are good, donate us. Thanks!
Join to our subscribers to be up to date with content, news and offers.
Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join