简体   繁体   English

启动容器进程导致“exec:\”bash\“:在 $PATH 中找不到可执行文件”:未知

[英]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我能够使用进入容器“mariadb”

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

bash is not present in mariadb Docker image. mariadb Docker 映像中不存在bash Use docker exec -it e44671200b7c /bin/sh or simply docker exec -it e44671200b7c sh instead.使用docker exec -it e44671200b7c /bin/sh或简单地docker exec -it e44671200b7c sh代替。

There are few images which do not support the interactive shell/bash.很少有图像不支持交互式 shell/bash。 Example - Docker image mockserver/mockserver Docker Set Up示例 - Docker image mockserver/mockserver Docker 设置

Docker Setup Page for MockServer Docker MockServer 设置页面

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Docker 启动容器进程导致“exec:\\”arg\\“:在 $PATH 中找不到可执行文件”:未知。 - Docker starting container process caused “exec: \”arg\“: executable file not found in $PATH”: unknown. 启动容器进程导致“exec:\\”/bin/sh\\“: stat /bin/sh: no such file or directory”:未知 - Starting container process caused “exec: \”/bin/sh\“: stat /bin/sh: no such file or directory”: unknown 入口点:在 $PATH 中找不到可执行文件:未知 - Entrypoint: Executable file not found in $PATH: unknown 使用 hyperledger fabric 调用链代码:在 $PATH\": unknown" 中找不到可执行文件 - Invoking chaincode with hyperledger fabric: Executable file not found in $PATH\ ": unknown" 在启动可执行文件之前以bash方式获取脚本文件 - Sourcing a script file in bash before starting an executable 无法找到可执行文件:“bash”。 请验证文件路径是否存在或该文件可以在 PATH 指定的目录中找到 - Unable to locate executable file: 'bash'. Please verify either the file path exists or the file can be found within a directory specified by the PATH exec不使用其他bash进行bash处理 - exec not bash process with another bash Bash / Docker exec:从容器内部重定向文件 - Bash / Docker exec: file redirection from inside a container 配置bash $ PATH变量以查找UNIX可执行文件 - Configuring bash $PATH variable to find UNIX executable file 尝试运行 Docker 映像时出现“exec 用户进程导致“没有这样的文件或目录”错误 - Getting "exec user process caused "no such file or directory"" error when trying to run Docker image
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM