报错:unable to get image 'langgenius/dify-plugin-daemon:0.1.2-local': Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

解决:

就算执行了 service docker start,查看service docker status的时候,docker还是没启动成功。

执行:

》update-alternatives --set iptables /usr/sbin/iptables-legacy

》update-alternatives --set ip6tables /usr/sbin /ip6tables-legacy

》service docker start

》docker version

```

Server: Docker Engine - Community

 Engine:

  Version:          28.3.0

  API version:      1.51 (minimum version 1.24)

  Go version:       go1.24.4

  Git commit:       265f709

  Built:            Tue Jun 24 15:44:12 2025

  OS/Arch:          linux/amd64

  Experimental:     false

 containerd:

  Version:          1.7.27

  GitCommit:        05044ec0a9a75232cad458027ca83437aae3f4da

 runc:

  Version:          1.2.5

  GitCommit:        v1.2.5-0-g59923ef

 docker-init:

  Version:          0.19.0

  GitCommit:        de40ad0

```

启动成功。

参考:WSl 安装 docker 处理 Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running - 梨花大将 - 博客园 (cnblogs.com)

Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐