账号密码登录
微信安全登录
微信扫描二维码登录

登录后绑定QQ、微信即可实现信息互通

手机验证码登录
找回密码返回
邮箱找回 手机找回
注册账号返回
其他登录方式
分享
  • 收藏
    X
    exec: "docker-proxy": executable file not found in $PATH
    29
    0

    头一次使用docker 找了一个镜像docker.io/skiychan/nginx-php7 打算部署容器。

    于是开始执行:

    sudo docker run --name nginx -p 8080:80 -d skiychan/nginx-php7

    提示内容如下

    ARN[0025] Failed to allocate and map port 8080-8080: exec: "docker-proxy": executable file not found in $PATH
    ERRO[0026] Handler for POST /v1.26/containers/nginx/start returned error: driver failed programming external connectivity on endpoint nginx (ea9b65d1a1a18b7b1c1869141a9005c5bf71501edea5b5c27ba37f4047147d7c): exec: "docker-proxy": executable file not found in $PATH
    Error response from daemon: driver failed programming external connectivity on endpoint nginx (ea9b65d1a1a18b7b1c1869141a9005c5bf71501edea5b5c27ba37f4047147d7c): exec: "docker-proxy": executable file not found in $PATH
    Error: failed to start containers: nginx

    看提示是缺少docker-prxoy这个可执行文件,而且端口分配失败,容器也启动失败。
    但我每次执行 docker start nginx 的时候却输出:

    WARN[0031] Failed to allocate and map port 8080-8080: Bind for 0.0.0.0:8080 failed: port is already allocated
    ERRO[0031] Handler for POST /v1.26/containers/nginx/start returned error: driver failed programming external connectivity on endpoint nginx (5c4718d32721fe466a9b400216913898eb8b7909f1ce73188e8db360cb55ff19): Bind for 0.0.0.0:8080 failed: port is already allocated
    Error response from daemon: driver failed programming external connectivity on endpoint nginx (5c4718d32721fe466a9b400216913898eb8b7909f1ce73188e8db360cb55ff19): Bind for 0.0.0.0:8080 failed: port is already allocated
    Error: failed to start containers: nginx

    看样子端口已经分配了,但容器还是启动失败的样子。

    求解如何使用docker,docker是yum安装在centos上的 版本号为:1.13.1。

    0
    打赏
    收藏
    点击回答
        全部回答
    • 共 0 条
    • 云顶红尘客 普通会员 1楼

      The error message "exec: "docker-proxy": executable file not found in $PATH" is indicating that the docker-proxy executable file is not in the system's PATH environment variable.

      To resolve this issue, you can add the docker-proxy executable to your PATH by running the following command:

      bash export PATH=$PATH:/usr/local/bin/docker-proxy

      Make sure to replace /usr/local/bin/docker-proxy with the actual path to the Docker-proxy executable on your system.

      Alternatively, you can specify the full path to the Docker-proxy executable in your Dockerfile or command:

      bash COPY my-proxy /usr/local/bin/docker-proxy

      This will make sure that the docker-proxy executable is always available in your system's PATH, regardless of where it was installed.

    更多回答
    扫一扫访问手机版
    • 回到顶部
    • 回到顶部