docker / for-win

Bug reports for Docker Desktop for Windows
https://www.docker.com/products/docker#/windows
1.86k stars 289 forks source link

unexpected WSL error #13988

Open Behdad203 opened 6 months ago

Behdad203 commented 6 months ago

Description

When I run the docker desktop, after almost 2 minutes while trying to start the docker engine, the program closes and displays the following error: An unexpected error was encountered while executing a WSL command. Common causes include access rights issues, which occur after waking the computer or not being connected to your domain/active directory.

Please try shutting WSL down (wsl -- shutdown) and/or rebooting your computer. If not sufficient, WSL may need to be reinstalled fully. As a last resort, try to uninstall/reinstall Docker Desktop. If the issue persists please collect diagnostics and submit an issue (https://docs.docker.com/desktop/troubleshoot/overview/#diagnose-from-the-terminal). Screenshot 2024-03-27 214843

Reproduce

Screenshot 2024-03-27 214843

Expected behavior

No response

docker version

error during connect: in the default daemon configuration on Windows, the docker client must be run with elevated privileges to connect: Get "http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.24/version": open //./pipe/docker_engine: The system cannot find the file specified.                                                                                             Client:                                                                                                                  Cloud integration: v1.0.35+desktop.11                                                                                   Version:           25.0.3                                                                                               API version:       1.44                                                                                                 Go version:        go1.21.6                                                                                             Git commit:        4debf41                                                                                              Built:             Tue Feb  6 21:13:02 2024                                                                             OS/Arch:           windows/amd64                                                                                        Context:           default

docker info

Client:                                                                                                                  Version:    25.0.3                                                                                                      Context:    default                                                                                                     Debug Mode: false                                                                                                       Plugins:                                                                                                                 buildx: Docker Buildx (Docker Inc.)                                                                                       Version:  v0.12.1-desktop.4                                                                                             Path:     C:\Program Files\Docker\cli-plugins\docker-buildx.exe                                                       compose: Docker Compose (Docker Inc.)                                                                                     Version:  v2.24.6-desktop.1                                                                                             Path:     C:\Program Files\Docker\cli-plugins\docker-compose.exe                                                      debug: Get a shell into any image or container. (Docker Inc.)                                                             Version:  0.0.24                                                                                                        Path:     C:\Program Files\Docker\cli-plugins\docker-debug.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.22                                                                                                       Path:     C:\Program Files\Docker\cli-plugins\docker-extension.exe                                                    feedback: Provide feedback, right in your terminal! (Docker Inc.)                                                         Version:  v1.0.4                                                                                                        Path:     C:\Program Files\Docker\cli-plugins\docker-feedback.exe                                                     init: Creates Docker-related starter files for your project (Docker Inc.)                                                 Version:  v1.0.1                                                                                                        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                                                         scout: Docker Scout (Docker Inc.)                                                                                         Version:  v1.5.0                                                                                                        Path:     C:\Program Files\Docker\cli-plugins\docker-scout.exe                                                                                                                                                                              Server:                                                                                                                 ERROR: error during connect: in the default daemon configuration on Windows, the docker client must be run with elevated privileges to connect: 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

AAF61727-43EB-46C3-AD79-927C974333FA

Additional Info

No response

Shravendra commented 6 months ago

facing same issue in Docker Compose version v2.24.6

Diagnostics ID: E88166CC-8888-4E12-9079-B083EF21AF8A

AdalbertTheCreator commented 6 months ago

I have same issue in v4.28.0

Diagnostics ID: E6EB8D17-EFC8-4569-9A4C-80DD7FA202FA

Pradebban commented 6 months ago

Same issue here : Diagnostics ID: 8EFE2E1A-F7DA-4EAB-809F-6C41C24372CA/20240403111955