[英]Windows10 WSL2 “gpg: can't connect to the agent: IPC connect call failed”
I am trying to install docker in Windows 10 (WSL2 - Ubuntu 20.04LTS) and run the following command, it's not working, the console displays this message "gpg: can't connect to the agent: IPC connect call failed" I am trying to install docker in Windows 10 (WSL2 - Ubuntu 20.04LTS) and run the following command, it's not working, the console displays this message "gpg: can't connect to the agent: IPC connect call failed"
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
Make sure that your Ubuntu 20.04 is using WSL 2. When I installed it is was set to WSL1.确保您的 Ubuntu 20.04 正在使用 WSL 2。当我安装它时,它被设置为 WSL1。 Changing it to WSL2 seemed to have done the trick.
将其更改为 WSL2 似乎已经成功了。
In Powershell run this command:在 Powershell 中运行以下命令:
wsl --set-version Ubuntu-20.04 2
If you don't have WSL 2, you'll need to install Ubuntu 18.04 from the Windows store.如果您没有 WSL 2,则需要从 Windows 商店安装 Ubuntu 18.04。
I just ran into the same issue with a fresh WSL + Docker install.我刚刚在安装新的 WSL + Docker 时遇到了同样的问题。 As is documented in issue #5125 in the WSL repo, Ubuntu 20.04 is incompatible with WSL 1 .
正如 WSL 存储库中的issue #5125中所述, Ubuntu 20.04 与 WSL 1 不兼容。 After installing Ubuntu 18.04, I was able to work through the rest of the Docker install instructions and continue through this useful tutorial .
安装 Ubuntu 18.04 后,我能够通过Docker 安装说明的 rest 工作,并继续学习这个有用的教程。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.