I installed docker on a clean laptop with the official Windows 11 with the latest update. Pre-installed WSL2 for Windows 11 according to Microsoft documentation. When running docker, the "docker starting..." is infinite. Attaching the error log. Error sending starting WSL engine:
Docker.Core.HttpBadResponseException: {"message":"2 errors occurred:\n\t* provisioning docker WSL distros: unregistering WSL distro "docker-desktop": unregistering WSL "docker-desktop": winapi error #2147746562\n\t* checking if isocache exists: CreateFile \\wsl$\docker-desktop-data\isocache\: The.network name cannot be found.\n\n"}
I tried to reinstall WSL and Docker. Deleted %appdata%/docker. For the test, I tried to install the Ubuntu subsystem through the Microsoft store. She didn't work either. Most likely a problem with the WSL. Try to off and on widnows features (WSL Support and Virtual Machine feature)
I had the same error solved it by: https://github.com/docker/for-win/issues/7039
Don't need to reinstall it.
Open windows shell as admin wsl --unregister docker-desktop
then go to services, stop docker desktop service
restart and start docker again
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.