wsl2使用Ubuntu安装docker,执行docker命令报错:Cannot connect to the Docker daemon at unix:///var/run/docker.soc
报错: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,查看servic
报错: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
```
启动成功。
更多推荐
所有评论(0)