for-win
for-win copied to clipboard
After update on Docker, WSL 2 does not work correct
Description
Diagnostics ID: 248CDEBF-8B39-4885-9B97-E7213B822BFC/20230703184858
Reproduce
.\com.docker.diagnose.exe gather -upload
Expected behavior
No response
docker version
Cloud integration: v1.0.35
Version: 24.0.2
API version: 1.43
Go version: go1.20.4
Git commit: cb74dfc
Built: Thu May 25 21:53:15 2023
OS/Arch: windows/amd64
Context: default
docker info
Client:
Version: 24.0.2
Context: default
Debug Mode: false
Plugins:
buildx: Docker Buildx (Docker Inc.)
Version: v0.11.0
Path: C:\Program Files\Docker\cli-plugins\docker-buildx.exe
compose: Docker Compose (Docker Inc.)
Version: v2.19.1
Path: C:\Program Files\Docker\cli-plugins\docker-compose.exe
dev: Docker Dev Environments (Docker Inc.)
Version: v0.1.0
Path: C:\Program Files\Docker\cli-plugins\docker-dev.exe
extension: Manages Docker extensions (Docker Inc.)
Version: v0.2.20
Path: C:\Program Files\Docker\cli-plugins\docker-extension.exe
init: Creates Docker-related starter files for your project (Docker Inc.)
Version: v0.1.0-beta.6
Path: C:\Program Files\Docker\cli-plugins\docker-init.exe
sbom: View the packaged-based Software Bill Of Materials (SBOM) for an image (Anchore Inc.)
Version: 0.6.0
Path: C:\Program Files\Docker\cli-plugins\docker-sbom.exe
scan: Docker Scan (Docker Inc.)
Version: v0.26.0
Path: C:\Program Files\Docker\cli-plugins\docker-scan.exe
scout: Command line tool for Docker Scout (Docker Inc.)
Version: 0.16.1
Path: C:\Program Files\Docker\cli-plugins\docker-scout.exe
Server:
ERROR: error during connect: this error may indicate that the docker daemon is not running: Get "http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.24/info": open //./pipe/docker_engine: The system cannot find the file specified.
errors pretty printing info
Diagnostics ID
248CDEBF-8B39-4885-9B97-E7213B822BFC/20230703184858
Additional Info
When start the Docker Desktop get this Issue
I think I had the same issue. Yesterday I updated Docker Desktop from 4.20.1 to 4.21.0. I did not do a restart after the upgrade and everything worked fine. When starting the notebook today the "unexpected WSL error" dialog was shown. When trying to execute WSL (Ubuntu) I received "WslRegisterDistribution failed with error 0x80073cfc".
Downloading the latest WSL release (msixbundle) from https://github.com/microsoft/WSL/releases and selecting the update option fixed it for me. After a restart WSL and Docker work again.
I think I had the same issue. Yesterday I updated Docker Desktop from 4.20.1 to 4.21.0. I did not do a restart after the upgrade and everything worked fine. When starting the notebook today the "unexpected WSL error" dialog was shown. When trying to execute WSL (Ubuntu) I received "WslRegisterDistribution failed with error 0x80073cfc".
Downloading the latest WSL release (msixbundle) from https://github.com/microsoft/WSL/releases and selecting the update option fixed it for me. After a restart WSL and Docker work again.
Thank you so much, this bypass solved my problem! I haven't been able to fix my docker desktop for 3 long days. You saved me,
Thank you!
I updated everything, but it didn't work until I activated the CPU-SVM from the BIOS.
I updated everything, but it didn't work until I activated the CPU-SVM from the BIOS.
Same here. I had to enable CPU virtualization in BIOS and then it started working. Have in mind that this was the first time I installed Docker Desktop in my machine. For the other people that it stopped working, probably the update of WSL will fix it.
I updated everything, but it didn't work until I activated the CPU-SVM from the BIOS.
Thanks it helped to mee too. So it seems like SVM mode has to be turned on to work with docker in amd proccessors
I think I had the same issue. Yesterday I updated Docker Desktop from 4.20.1 to 4.21.0. I did not do a restart after the upgrade and everything worked fine. When starting the notebook today the "unexpected WSL error" dialog was shown. When trying to execute WSL (Ubuntu) I received "WslRegisterDistribution failed with error 0x80073cfc".
Downloading the latest WSL release (msixbundle) from https://github.com/microsoft/WSL/releases and selecting the update option fixed it for me. After a restart WSL and Docker work again.
Thank you sooooo much! Your reply perfectly solve my problem!
I think I had the same issue. Yesterday I updated Docker Desktop from 4.20.1 to 4.21.0. I did not do a restart after the upgrade and everything worked fine. When starting the notebook today the "unexpected WSL error" dialog was shown. When trying to execute WSL (Ubuntu) I received "WslRegisterDistribution failed with error 0x80073cfc".
Downloading the latest WSL release (msixbundle) from https://github.com/microsoft/WSL/releases and selecting the update option fixed it for me. After a restart WSL and Docker work again.
A million thanks!❤️
I had an error due to an incorrectly configured .wslconfig. Exactly the same mistake as yours. I deleted all the comments and extra lines from the config, and everything worked. Initially, I took it from the Microsoft website, but it didn't work without its settings. As a result, I deleted everything, leaving only these lines in it:
.wslconfig
memory=4GB
processors=2
And everything started ok.
I also encountered the same problem. Perhaps it's my network problem, and trying the above methods and running "wsl -- update" in PS is ineffective The final solution is to find the offline update package for WSL, After installing the latest version of WSL, version 4.28.0 of Docker Desktop was successfully launched. Download address: https://github.com/microsoft/WSL/releases
.wslconfig
@suprunchuk how do locate .wslconfig file?
I think I had the same issue. Yesterday I updated Docker Desktop from 4.20.1 to 4.21.0. I did not do a restart after the upgrade and everything worked fine. When starting the notebook today the "unexpected WSL error" dialog was shown. When trying to execute WSL (Ubuntu) I received "WslRegisterDistribution failed with error 0x80073cfc".
Downloading the latest WSL release (msixbundle) from https://github.com/microsoft/WSL/releases and selecting the update option fixed it for me. After a restart WSL and Docker work again.
I installed the file but did not work for me. CPU virtualization is also enabled
.wslconfig
@suprunchuk how do locate .wslconfig file?
- Open the explorer. (Win + E)
- Enter
%UserProfile%
in the address bar - Find the file at the bottom
.wslconfig
or create it.
2. %UserProfile%
Thank you, I did not see the file so I created one and enter the variable sand values you provided. Still got same error.
I think I had the same issue. Yesterday I updated Docker Desktop from 4.20.1 to 4.21.0. I did not do a restart after the upgrade and everything worked fine. When starting the notebook today the "unexpected WSL error" dialog was shown. When trying to execute WSL (Ubuntu) I received "WslRegisterDistribution failed with error 0x80073cfc". Downloading the latest WSL release (msixbundle) from https://github.com/microsoft/WSL/releases and selecting the update option fixed it for me. After a restart WSL and Docker work again.
Thank you so much, this bypass solved my problem! I haven't been able to fix my docker desktop for 3 long days. You saved me,
Thank you!
This worked for me. Installing newest version of WSL from github releases worked right away without reboot on windows 10. Just reopen Docker Desktop without reinstalling it after installing the newest WSL.