Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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
like image 320
Zeineb Khairallah Avatar asked Dec 02 '22 09:12

Zeineb Khairallah


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.

like image 167
Pierre B. Avatar answered Dec 20 '22 07:12

Pierre B.