2
votes
e44671200b7c /# mysql -u root -p bash 

mysql: command not found

I was able to enter into the container "mariadb" using

docker exec -it e44671200b7c /bin/bash

but i couldn't and i have this now error

OCI runtime exec failed: exec failed: container_linux.go:349: starting container process caused "exec: \"bash\": executable file not found in $PATH": unknown
1
Hey! Please try to improve your question. I have read it several times, but I still don't get what did you mean to ask here. Probably you will find this guide useful: stackoverflow.com/help/how-to-ask - zinovyev
Also be sure you don't do something like docker ... -v /my/binaries:/bin. - Drakes

1 Answers

14
votes

bash is not present in mariadb Docker image. Use docker exec -it e44671200b7c /bin/sh or simply docker exec -it e44671200b7c sh instead.