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

92vpleto  于 2022-11-08  发布在  其他
关注(0)|答案(2)|浏览(140)
e44671200b7c /# mysql -u root -p bash 

mysql: command not found

我可以进入集装箱“mariadb”使用

docker exec -it e44671200b7c /bin/bash

但我不能,我有这个现在的错误

OCI runtime exec failed: exec failed: container_linux.go:349: starting container process caused "exec: \"bash\": executable file not found in $PATH": unknown
fkvaft9z

fkvaft9z1#

mariadb Docker映像中不存在bash请改用docker exec -it e44671200b7c /bin/sh或仅使用docker exec -it e44671200b7c sh

vlju58qv

vlju58qv2#

有几个图像不支持交互式shell/bash. Example - Docker图像mockserver/mockserver Docker设置
Docker Setup Page for MockServer

相关问题