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

Docker Desktop - Unexpected WSL error An unexpected error occurred while executing a WSL command. #14634

Open
99glor opened this issue Mar 2, 2025 · 2 comments

Comments

@99glor
Copy link

99glor commented Mar 2, 2025

Description

Please help me fix the issue
here is the code
ECEB9726-870B-483C-A209-E7E6DF2141DE/20250302121307
thanks

Image

Reproduce

reinstall, restart machine, restart docker

Expected behavior

No response

docker version

latest version for Windows

docker info

latest version

Diagnostics ID

ECEB9726-870B-483C-A209-E7E6DF2141DE/20250302121307

Additional Info

No response

@BharathAchu
Copy link

im also having the same issue

deploying WSL2 distributions
ensuring main distro is deployed: deploying "docker-desktop": importing WSL distro "WSL2 is not supported with your current machine configuration.\r\nPlease enable the "Virtual Machine Platform" optional component and ensure virtualization is enabled in the BIOS.\r\nEnable "Virtual Machine Platform" by running: wsl.exe --install --no-distribution\r\nFor information please visit https://aka.ms/enablevirtualization\r\nError code: Wsl/Service/RegisterDistro/CreateVm/HCS/HCS_E_HYPERV_NOT_INSTALLED\r\n" output="docker-desktop": exit code: 4294967295: running WSL command wsl.exe C:\Windows\System32\wsl.exe --import docker-desktop \AppData\Local\Docker\wsl\main C:\Program Files\Docker\Docker\resources\wsl\wsl-bootstrap.tar --version 2: WSL2 is not supported with your current machine configuration.
Please enable the "Virtual Machine Platform" optional component and ensure virtualization is enabled in the BIOS.
Enable "Virtual Machine Platform" by running: wsl.exe --install --no-distribution
For information please visit https://aka.ms/enablevirtualization
Error code: Wsl/Service/RegisterDistro/CreateVm/HCS/HCS_E_HYPERV_NOT_INSTALLED
: exit status 0xffffffff
checking if isocache exists: CreateFile \wsl$\docker-desktop-data\isocache: The network name cannot be found.

Diagnostics ID -
2E00A241-70F2-4899-A233-DF3EC6391A24/20250313033303

@Riekobrian
Copy link

I am also having this same issue during installation and I have through many tutorials but none seems to work for me;
8F5DA045-6BE9-4D0C-8BAA-939DA4C2AA7B/20250313153345

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.

Usage: wsl.exe [Argument] [Options...] [CommandLine]

Arguments for running Linux binaries:

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.

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

4 participants