1、报错详情

  1. [root@iZuligp6e1dyzfZ /]# docker run --name zk01 -p 2181:2181 --restart always -d 7341c5373a13
  2. 59d47e925c0d6f0815cbbab62d349b364248caebed53eb522413d7f59d27665a
  3. /usr/bin/docker-current: Error response from daemon: driver failed programming external connectivity on endpoint zk01 (929602510b5a61eb8d0162c275f80d7d0797bf2ed68b2642c11bcc189db9ea89): exec: "docker-proxy": executable file not found in $PATH.

image.png

2、解决步骤

容器的启动需要执行 /usr/bin/docker-proxy

①查看docker-proxy的位置

  1. [root@iZuligp6e1dyzfZ /]# cat /usr/lib/systemd/system/docker.service | grep prox
  2. --userland-proxy-path=/usr/libexec/docker/docker-proxy-current \

②创建一条docker-proxy的软连接到 /usr/bin/ 下

  1. [root@iZuligp6e1dyzfZ /]# ln -s /usr/libexec/docker/docker-proxy-current /usr/bin/docker-proxy

image.png