×
您的位置: 首页 > 编程笔记

【解决】OCI runtime exec failed......executable file not found in $PATH

Docker Bug 时间:2019-12-16  查看:489   收藏

【问题】使用docker exec + sh进入容器时报错

[root@localhost home]# docker exec -it container-test bash
OCI runtime exec failed: exec failed: container_linux.go:346: starting container process caused "exec: "bash": executable file not found in $PATH": unknown

【分析】

  由于镜像系统不一,使用错误shell解释器导致,可尝试以下其中一种方案。

【解决】

docker exec -it container-test /bin/

docker exec -it container-test /bin/

docker exec -it container-test /bin/

 

0% (0)
0% (0)