【Docker】OCI runtime exec failed: exec failed: container_linux.go:348: starting container process cau

1.背景

docker执行命令

(base) lcc@lcc flink-1.10.0$ docker exec -it mysqld-exporter /bin/bash
OCI runtime exec failed: exec failed: container_linux.go:348: starting container process caused "exec: \"/bin/bash\": stat /bin/bash: no such file or directory": unknown

mac下进入容器产生的错误

2.解决办法

docker exec -it 4cf5c20fa4a6 /bin/sh

or

docker exec -it 4cf5c20fa4a6 bash

or

docker exec -it 4cf5c20fa4a6 sh

你可能感兴趣的:(工具-docker)