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

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

[[email protected] 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/bash

docker exec -it container-test /bin/sh

docker exec -it container-test /bin/csh

原文地址:https://www.cnblogs.com/leozhanggg/p/12023429.html

时间: 2024-10-09 22:08:29

【解决】OCI runtime exec failed......executable file not found in $PATH": unknown的相关文章

报错:exec:"gcc" executable file not found in %PATH%

问题 在编译以太坊源码时出现以下错误信息: exec: "gcc": executable file not found in %PATH% Windows下解决方法 1. 下载mingw64,并安装 下载地址:https://sourceforge.net/projects/mingw-w64/ 2. 设置环境变量 将安装目录下的bin文件夹添加到Path环境变量中: C:\Program Files (x86)\mingw-w64\i686-8.1.0-posix-dwarf-rt

exec: "docker-proxy": executable file not found in $PATH

在执行 docker run 操作的时候,一直报如下错误: [[email protected] vagrant]# docker run --name redis-6379 -p 6379:6379 -d --rm daocloud.io/library/redis 9e3e4650004bfd68030ea23c4a1e300556721c516160464afe45554b2184c111 /usr/bin/docker-current: Error response from daemo

gogs仓库管理软件 exec: "git-upload-pack": executable file not found in $PATH

当配置完个人中心的ssh公钥的时候,在客户端拉取代码的时候,提示如下错误: Cloning into 'comix-b2m'... Gogs: Internal error fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. 一度认为是ssh公钥配置问题 后端serv日志报错如下: exec: "gi

(转)VSCode调试go语言出现:exec: "gcc": executable file not found in %PATH%

原文:https://www.cnblogs.com/zsy/p/5958170.html 1.问题描述 由于安装VS15 Preview 5,搞的系统由重新安装一次:在用vscdoe编译go语言时,出现以下问题: # odbcexec: "gcc": executable file not found in %PATH%exit status 2 2.解决方案 2.1 mingw 64 MinGW分为较早开发的MinGW32和之后为编译64位程序开发的MinGW-w64,MinGW3

exec: "go": executable file not found in $PATH异常的原因

尝试在机器上部署athens,运行时发生如下异常 error adding proxy routes ,exec: "go": executable file not found in $PATH. 一般来说go程序的运行环境是不需要安装go的.在交叉编译的加持下,分发部署更加方便.但是如果go程序中通过exec的方式执行了其他go命令,那么部署环境自然也需要安装go,且export到path中.athens有了这样的逻辑才导致上述异常. 原文地址:https://www.cnblog

exec: "gcc": executable file not found in %PATH%

MinGW分为较早开发的MinGW32和之后为编译64位程序开发的MinGW-w64,MinGW32只能编译32位的程序,而mingw64不仅能编译64位程序,也能编译32位程序,还能进行交叉编译,即在32位主机上编译64位程序,在64位主机上编译32位程序. 由于用的window10 企业版64位操作系统, 下载地址:https://pan.baidu.com/s/1RNvMBXUiHXruXzrGySnQRg 点击“Download”按钮, 在使用mingw64之前,由于其支持较多的编译类型

“exec: "ssh-keygen": executable file not found in %PATH%” 问题解决

set PATH=%PATH%;C:\Program Files (x86)\Git\bin bash start.sh 将以上内容保存为start.bat,放在boot2docker根目录下,管理员身份运行即可

docker: Error response from daemon: OCI runtime create failed 解决办法

错误原因 在新服务器上安装好docker后,发现无法运行,经常一顿搜索后,发现是docker安装的版本过高,最新版本docker-18.06 的核心好像没有经过充分的测试就发布了. 导致一运行,就提示: docker: Error response from daemon: OCI runtime create failed: container_linux.go:348: starting container process caused "process_linux.go:301: runn

【docker报错】starting container process caused "exec: \"-P8080:8080\": executable file not found in $PATH".

docker创建tomcat容器报错: [[email protected] ~]# docker run -di --name=tomcat tomcat:latest -P8080:80806ff68159042bf87347bc9570d4ab8151fe8ff3b5bc60333718f6a0f8fd95af5b/usr/bin/docker-current: Error response from daemon: oci runtime error: container_linux.g