天使漫步IT工作室天使漫步IT工作室

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


Warning: count(): Parameter must be an array or an object that implements Countable in /www/wwwroot/u11u.com/usr/themes/wq/functions.php on line 110

Warning: count(): Parameter must be an array or an object that implements Countable in /www/wwwroot/u11u.com/usr/themes/wq/functions.php on line 116

调试的时候发现以下错误:

[root@show2 dingdingh5]# docker-compose exec haopengh5 bash
OCI runtime exec failed: exec failed: container_linux.go:380: starting container process caused: exec: "bash": executable file not found in $PATH: unknown

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

【解决】

docker exec -it container-test /bin/bash

docker exec -it container-test /bin/sh

docker exec -it container-test /bin/csh

笔者试了下,第二条可以成功进入到docker环境中。

本站原创,欢迎转载,转载敬请标明出处:天使漫步IT工作室 » 【解决方法】OCI runtime exec failed......executable file not found in $PATH": unknown
添加新评论


Warning: Use of undefined constant php - assumed 'php' (this will throw an Error in a future version of PHP) in /www/wwwroot/u11u.com/usr/themes/wq/comments.php on line 38