小编erK*_*ito的帖子

Docker Rancher - 从 WSL 使用 docker 时权限被拒绝

我已经在 Windows 10 上使用 dockerd 选项安装了 Docker Rancher,并为我当前的 WSL 发行版 (Ubuntu) 安装了 WSL。当我尝试在 WSL2 中使用 docker 时,出现以下错误:

fpapi@xxx:~$ docker ps
Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get "http://%2Fvar%2Frun%2Fdocker.sock/v1.24/containers/json": dial unix /var/run/docker.sock: connect: permission denied
Run Code Online (Sandbox Code Playgroud)

该命令在 cmd shell 中运行良好。

我缺少哪种许可?

docker windows-10 rancher windows-subsystem-for-linux

6
推荐指数
1
解决办法
1万
查看次数