starting container process caused "exec: \"bash\": executable file not found in $PATH": unknown

Viewed 15324
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 Answers

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

Related