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

 

【问题】使用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解释器致使,可尝试如下其中一种方案。linux

 

【解决】

docker exec -it container-test /bin/bash

docker exec -it container-test /bin/sh

docker exec -it container-test /bin/csh
相关文章
相关标签/搜索