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. Changing it to WSL2 seemed to have done the trick.
In Powershell run this command:
wsl --set-version Ubuntu-20.04 2
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With