Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpected WSL error #14550

Open
rrdgcoks opened this issue Jan 22, 2025 · 1 comment
Open

Unexpected WSL error #14550

rrdgcoks opened this issue Jan 22, 2025 · 1 comment

Comments

@rrdgcoks
Copy link

Description

I'm using Docker Desktop on Windows 11. I am using the default Ubuntu distribution. Just about every other time I start up my computer, Docker Desktop works fine. It loads up my containers. The other half of the time, it shows this error below. I've gathered the diagnostics ID. I've been having issues ever since I started using Docker Desktop. I've tried solutions offered in other issues, but nothing has really helped.

Diagnostics ID: D620DC75-31D3-439B-BA89-2AE7ED988D3F/20250122132812

deploying WSL2 distributions ensuring main distro is deployed: deploying "docker-desktop": importing WSL distro "Logon failure: the user has not been granted the requested logon type at this computer. \r\nError code: Wsl/Service/RegisterDistro/CreateVm/HCS/0x80070569\r\n" output="docker-desktop": exit code: 4294967295: running WSL command wsl.exe C:\Windows\System32\wsl.exe --import docker-desktop <HOME>\AppData\Local\Docker\wsl\main C:\Program Files\Docker\Docker\resources\wsl\wsl-bootstrap.tar --version 2: Logon failure: the user has not been granted the requested logon type at this computer. Error code: Wsl/Service/RegisterDistro/CreateVm/HCS/0x80070569 : exit status 0xffffffff checking if isocache exists: CreateFile \\wsl$\docker-desktop-data\isocache\: The network name cannot be found.

Reproduce

  1. Windows 11 machine
  2. Docker Desktop v4.37.1
  3. Ubuntu distribution
  4. Start up machine, Docker Destkop starts automatically then fails

Expected behavior

No error

docker version

Client:
 Version:           27.4.0
 API version:       1.47
 Go version:        go1.22.10
 Git commit:        bde2b89
 Built:             Sat Dec  7 10:40:21 2024
 OS/Arch:           windows/amd64
 Context:           desktop-linux
error during connect: Get "http://%2F%2F.%2Fpipe%2FdockerDesktopLinuxEngine/v1.47/version": open //./pipe/dockerDesktopLinuxEngine: The system cannot find the file specified.

docker info

Client:
 Version:    27.4.0
 Context:    desktop-linux
 Debug Mode: false
 Plugins:
  ai: Ask Gordon - Docker Agent (Docker Inc.)
    Version:  v0.5.1
    Path:     C:\Program Files\Docker\cli-plugins\docker-ai.exe
  buildx: Docker Buildx (Docker Inc.)
    Version:  v0.19.2-desktop.1
    Path:     C:\Program Files\Docker\cli-plugins\docker-buildx.exe
  compose: Docker Compose (Docker Inc.)
    Version:  v2.31.0-desktop.2
    Path:     C:\Program Files\Docker\cli-plugins\docker-compose.exe
  debug: Get a shell into any image or container (Docker Inc.)
    Version:  0.0.37
    Path:     C:\Program Files\Docker\cli-plugins\docker-debug.exe
  desktop: Docker Desktop commands (Beta) (Docker Inc.)
    Version:  v0.1.0
    Path:     C:\Program Files\Docker\cli-plugins\docker-desktop.exe
  dev: Docker Dev Environments (Docker Inc.)
    Version:  v0.1.2
    Path:     C:\Program Files\Docker\cli-plugins\docker-dev.exe
  extension: Manages Docker extensions (Docker Inc.)
    Version:  v0.2.27
    Path:     C:\Program Files\Docker\cli-plugins\docker-extension.exe
  feedback: Provide feedback, right in your terminal! (Docker Inc.)
    Version:  v1.0.5
    Path:     C:\Program Files\Docker\cli-plugins\docker-feedback.exe
  init: Creates Docker-related starter files for your project (Docker Inc.)
    Version:  v1.4.0
    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.15.1
    Path:     C:\Program Files\Docker\cli-plugins\docker-scout.exe

Server:
ERROR: error during connect: Get "http://%2F%2F.%2Fpipe%2FdockerDesktopLinuxEngine/v1.47/info": open //./pipe/dockerDesktopLinuxEngine: The system cannot find the file specified.
errors pretty printing info

Diagnostics ID

D620DC75-31D3-439B-BA89-2AE7ED988D3F/20250122132812

Additional Info

No response

@rrdgcoks
Copy link
Author

If I completely stop Docker Desktop services, then go to PowerShell, shutdown wsl, then run the command wsl, it gives me this error:
Logon failure: the user has not been granted the requested logon type at this computer.
Error code: Wsl/Service/CreateInstance/CreateVm/HCS/0x80070569

If I run this command: Get-Service vmcompute | Restart-Service, then wsl, it doesn't fail. After restarting Docker Desktop, it starts up. How can I fix this permanently so this service is always running?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants