You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I encountered an unexpected WSL error when trying to start Docker Desktop. The error message indicates an issue with mounting the VHDX file.
Error message:
It starts up and than runs for a 30 seconds till i get this error report
An unexpected error occurred while executing a WSL command.
Error: exit code: 4294967295
checking if isocache exists: CreateFile \wsl$\docker-desktop-data\isocache: The network name cannot be found.
Docker Desktop - Unexpected WSL error
An unexpected error occurred while executing a WSL command.
Either shut down WSL down with wsl --shutdown, and/or reboot your machine. You can also try reinstalling WSL and/or Docker Desktop. If the issue persists, collect diagnostics and submit an issue .
deploying WSL2 distributions
ensuring data disk is available: exit code: 4294967295: running WSL command wsl.exe C:\Windows\System32\wsl.exe --mount --bare --vhd \AppData\Local\Docker\wsl\disk\docker_data.vhdx: Copyright (c) Microsoft Corporation. All rights reserved.
If no command line is provided, wsl.exe launches the default shell.
--exec, -e <CommandLine>
Execute the specified command without using the default Linux shell.
--
Pass the remaining command line as is.
Options:
--cd <Directory>
Sets the specified directory as the current working directory.
If ~ is used the Linux user's home path will be used. If the path begins
with a / character, it will be interpreted as an absolute Linux path.
Otherwise, the value must be an absolute Windows path.
--distribution, -d <Distro>
Run the specified distribution.
--user, -u <UserName>
Run as the specified user.
--system
Launches a shell for the system distribution.
Arguments for managing Windows Subsystem for Linux:
--help
Display usage information.
--install [Options]
Install additional Windows Subsystem for Linux distributions.
For a list of valid distributions, use 'wsl --list --online'.
Options:
--distribution, -d [Argument]
Downloads and installs a distribution by name.
Arguments:
A valid distribution name (not case sensitive).
Examples:
wsl --install -d Ubuntu
wsl --install --distribution Debian
--set-default-version <Version>
Changes the default install version for new distributions.
--shutdown
Immediately terminates all running distributions and the WSL 2
lightweight utility virtual machine.
--status
Show the status of Windows Subsystem for Linux.
--update [Options]
If no options are specified, the WSL 2 kernel will be updated
to the latest version.
Options:
--rollback
Revert to the previous version of the WSL 2 kernel.
Arguments for managing distributions in Windows Subsystem for Linux:
--export <Distro> <FileName>
Exports the distribution to a tar file.
The filename can be - for standard output.
--import <Distro> <InstallLocation> <FileName> [Options]
Imports the specified tar file as a new distribution.
The filename can be - for standard input.
Options:
--version <Version>
Specifies the version to use for the new distribution.
--list, -l [Options]
Lists distributions.
Options:
--all
List all distributions, including distributions that are
currently being installed or uninstalled.
--running
List only distributions that are currently running.
--quiet, -q
Only show distribution names.
--verbose, -v
Show detailed information about all distributions.
--online, -o
Displays a list of available distributions for install with 'wsl --install'.
--set-default, -s <Distro>
Sets the distribution as the default.
--set-version <Distro> <Version>
Changes the version of the specified distribution.
--terminate, -t <Distro>
Terminates the specified distribution.
--unregister <Distro>
Unregisters the distribution and deletes the root filesystem.
--mount <Disk>
Attaches and mounts a physical disk in all WSL2 distributions.
Options:
--bare
Attach the disk to WSL2, but don't mount it.
--type <Type>
Filesystem to use when mounting a disk, if not specified defaults to ext4.
--options <Options>
Additional mount options.
--partition <Index>
Index of the partition to mount, if not specified defaults to the whole disk.
--unmount [Disk]
Unmounts and detaches a disk from all WSL2 distributions.
Unmounts and detaches all disks if called without argument.
: exit status 0xffffffff
checking if isocache exists: CreateFile \wsl$\docker-desktop-data\isocache: The network name cannot be found. Read our policy for uploaded diagnostic data
Fixes I have tried:
I reinstalled ubuntu,docker,wsl through cmd and powershell
Restarted WSL (wsl --shutdown).
Restarted the LxssManager service.
Updated WSL (wsl --update).
Reset Docker Desktop WSL integration.
Deleted and recreated the docker_data.vhdx file.
Reinstalled both Docker Desktop and WSL.
Running wsl -l -v shows that docker-desktop is in a Stopped state.
Running docker version inside WSL gives "Cannot connect to the Docker daemon at unix:///var/run/docker.sock."
Restarting Docker Desktop and WSL does not resolve the issue.
This issue persists even after reinstalling Docker Desktop and resetting WSL.
Made sure Virtualization was on in bios
Below image shows when i check status through powershell the intial run is from docker app
after this when docker crashes the status changes to stopped again
Docker should start up and operate and run normally.
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
you will notice in the version and info that there is a error log there aswell
I am rather confused on what is happening overall any assitance would be greatly appreciated.
The text was updated successfully, but these errors were encountered:
A bit anecdotal, but what helped in my case was running Docker for Windows as an admin once. After that I was again able to run it as a normal user.
@Bragolgirith sadly didnt work but thank you for the suggestion
ill try toubleshooting again today but or else most likely it maybe a windows issue and a fresh install of windows maybe the best option
Description
I encountered an unexpected WSL error when trying to start Docker Desktop. The error message indicates an issue with mounting the VHDX file.
Error message:
It starts up and than runs for a 30 seconds till i get this error report
An unexpected error occurred while executing a WSL command.
Error: exit code: 4294967295
checking if isocache exists: CreateFile \wsl$\docker-desktop-data\isocache: The network name cannot be found.
Fixes I have tried:
I reinstalled ubuntu,docker,wsl through cmd and powershell
Restarted WSL (wsl --shutdown).
Restarted the LxssManager service.
Updated WSL (wsl --update).
Reset Docker Desktop WSL integration.
Deleted and recreated the docker_data.vhdx file.
Reinstalled both Docker Desktop and WSL.
Running
wsl -l -v
shows thatdocker-desktop
is in aStopped
state.Running
docker version
inside WSL gives "Cannot connect to the Docker daemon at unix:///var/run/docker.sock."Restarting Docker Desktop and WSL does not resolve the issue.
This issue persists even after reinstalling Docker Desktop and resetting WSL.
Made sure Virtualization was on in bios
Below image shows when i check status through powershell the intial run is from docker app
![Image](https://private-user-images.githubusercontent.com/120072705/410467981-a211ba7e-b98b-40a3-b96a-d693df44786d.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkwNzc3NDMsIm5iZiI6MTczOTA3NzQ0MywicGF0aCI6Ii8xMjAwNzI3MDUvNDEwNDY3OTgxLWEyMTFiYTdlLWI5OGItNDBhMy1iOTZhLWQ2OTNkZjQ0Nzg2ZC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjA5JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIwOVQwNTA0MDNaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1kOTQxZjJmODliZTI0OWYxNWFiMzY1NmE4ZGQxNDg4ZDQ3OTk2YjczMmMyNWMwMWM4NjcyODA1Yjc3NjExMWFhJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.jyuY2ZpyxboaA6ka-k7-fhBJh7UZViUEP_uPn5GqOz4)
after this when docker crashes the status changes to stopped again
Here is the latest log file from docker
Reproduce
1.Docker run
2.Docker shows error message after 30 seconds
Expected behavior
Docker should start up and operate and run normally.
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
Diagnostics ID
47482F54-9B9A-4B67-A4C9-704236D1D42B/20250206123014
Additional Info
you will notice in the version and info that there is a error log there aswell
I am rather confused on what is happening overall any assitance would be greatly appreciated.
The text was updated successfully, but these errors were encountered: