I'm trying to execute a shell in my Docker container using the command `docker exec -it 88a5bdd03223 /bin/bash`, but I'm running into an error: OCI runtime exec failed, stating that it cannot find `/bin/bash`. However, using `docker exec -it 88a5bdd03223 /bin/sh` works fine. I've noticed that when I try to run `bash` from within the sh shell, I get a message saying `'bash: not found'`. What's going wrong here? Also, I'm curious how to edit files inside the container since I can't use nano. Any insights would be greatly appreciated!
1 Answer
It sounds like your Docker image doesn't include bash, which is common for minimal images. Instead, you can use `sh` like you're doing. Just keep in mind that not every base image has bash installed. Containers built on Alpine, for example, usually just have `sh`. So, there's nothing wrong with your command; bash just isn't there.

Got it, thanks! But this is why I wanted in. My website crashes when there are more than 120 users, and I'm not sure how to fix that, given that my specs should handle it. It’s confusing compared to a regular website.