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

11,156

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

Share:
11,156
Zeineb Khairallah
Author by

Zeineb Khairallah

Updated on July 01, 2022

Comments

  • Zeineb Khairallah
    Zeineb Khairallah almost 2 years
    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
    
  • Zeineb Khairallah
    Zeineb Khairallah almost 4 years
    i tried too but i want to get into the container i was able to get into the container but when i trie to fix that " mysql: command not found "
  • Pierre B.
    Pierre B. almost 4 years
    Similar issue, that's because mariadb does not have mysql binaries installed. See stackoverflow.com/questions/39901311/…. You seem new to Docker, maybe you should try to understand how a Docker image works and how to install/use packages in a Docker image, here's a good start: docs.docker.com/get-started