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 daemon: driver failed programming external connectivity on endpoint redis-6379 (78ec2496afe55876e51d8e062bb09a6fcda7f36e292b99ad902efc27c65aa555): exec: "docker-proxy": executable file not found in $PATH

  

可知,启动需要执行 /usr/bin/docker-proxy

查看下 docker-proxy 的位置:

[[email protected] vagrant]# cat /usr/lib/systemd/system/docker.service | grep prox
          --userland-proxy-path=/usr/libexec/docker/docker-proxy-current 

  

创建一条软连接到 /usr/bin/ 下:

[[email protected] vagrant]# ln -s /usr/libexec/docker/docker-proxy-current /usr/bin/docker-proxy

  

重新执行操作:

[[email protected] vagrant]#  docker run --name redis-6379 -p 6379:6379 -d --rm daocloud.io/library/redis
516049b733070354a177dba57fbe402fd4c0e47682ce4660275e18ffcbb58342

  

以上.

原文地址:https://www.cnblogs.com/cxbhakim/p/9149596.html

时间: 2024-10-02 06:35:01

exec: "docker-proxy": executable file not found in $PATH的相关文章

【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

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

【解决】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&

报错: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

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

golang executable file not found in $PATH

最近使用docker,遇见executable file not found in $PATH,深究一下源码,追溯到golang内置包,看代码 //寻找可执行的文件,取文件的mode(二进制形式) func findExecutable(file string) error { d, err := os.Stat(file) if err != nil { return err } //看属性 if m := d.Mode(); !m.IsDir() && m&0111 != 0 

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

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

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之前,由于其支持较多的编译类型