Hey everyone! I'm pretty new to Docker and have run into a bit of a snag after updating my system from Windows 10 to Windows 11. Everything was working perfectly fine before the upgrade, but now, whenever I try to run a simple command like 'docker pull hello-world', I encounter an error that says: 'docker: could not validate the path to a trusted root: unable to retrieve valid leaf certificates.' I've even uninstalled Docker Desktop and reinstalled it, but the error still persists. Any ideas on how to fix this? Thanks a bunch for any advice!
1 Answer
It sounds like there might be a certificate issue due to the OS update. Make sure your Windows certificates are updated. You can try running the Windows Update to fix any pending updates and then reboot your system. Sometimes Windows 11 changes the way certificates are handled, so that might take care of it! Let me know if that helps!

Yeah, I had a similar issue after switching to Windows 11. Updating all the software and running a few commands in an elevated PowerShell window helped me. Worth a shot!