for-win icon indicating copy to clipboard operation
for-win copied to clipboard

Docker cannot run on windows

Open Wonderer11 opened this issue 3 years ago • 12 comments

Description

I download the docker desktop a few days ago and cannot run it on my device. It keeps saying that I have an unexpected wsl error, even I had follow the every instructions: shut down wsl and restart, reinstall wsl, and reinstall docker desktop. They don't work.

Reproduce

  1. Install docker
  2. run docker
  3. error pop up windows

Expected behavior

docker will run

docker version

Not sure, I cannot run docker and I have never used it before, it should be the newest version.

docker info

Not sure

Diagnostics ID

9AD8AD8D-C5F6-4DF3-B026-C0A1B9A31542/20231026002318

Additional Info

No response

Wonderer11 avatar Oct 26 '23 00:10 Wonderer11

you can follow the solution given in https://github.com/docker/for-win/issues/12548

Some other things, if you are using Windows,check that virtualization is enabled { you can check this by going to task manager to performance, there you can see the virtualization is enabled or not,}

After following steps the step in https://github.com/docker/for-win/issues/12548 issue and enabling the virtualization in my computer it worked.

danisherror avatar Oct 27 '23 10:10 danisherror

Thank you I will try

Wonderer11 avatar Oct 28 '23 19:10 Wonderer11

It doesn't work the wsl is up to date and I download the newest version of docker desktop the data file had already deleted but I still have the same error

Wonderer11 avatar Oct 28 '23 19:10 Wonderer11

Sooo... I'm having a similar issue, the proposed solution however doesn't seem to work, since wslEngineEnabled is already set to true, and DockerCli.exe doesn't seem to exist in the C:\Program Files\Docker\Docker folder, I do have a com.docker.cli.exe in the resources/bin folder however that doesn't seem to be the correct one either.. It just doesn't exist. Virtualization is enabled, wsl2 is installed and set as the default, and ubuntu is installed, but docker just has a neverending loop when started where it tries to start up the engine, tried several reinstalls and removing all temp files, running as admin, etc, didn't seem to make a difference. Now I wonder why I don't have the DockerCli.exe file...

BartAgterbosch avatar Oct 30 '23 14:10 BartAgterbosch

can you check if virtualization is enabled or not

Sooo... I'm having a similar issue, the proposed solution however doesn't seem to work, since wslEngineEnabled is already set to true, and DockerCli.exe doesn't seem to exist in the C:\Program Files\Docker\Docker folder, I do have a com.docker.cli.exe in the resources/bin folder however that doesn't seem to be the correct one either.. It just doesn't exist. Virtualization is enabled, wsl2 is installed and set as the default, and ubuntu is installed, but docker just has a neverending loop when started where it tries to start up the engine, tried several reinstalls and removing all temp files, running as admin, etc, didn't seem to make a difference. Now I wonder why I don't have the DockerCli.exe file...

download

It is enabled yes, also it works as it should because I have no issues running anything in virtualbox or vmware, is there by any chance a logfile somewhere that I can look at? Maybe that could give a clue

BartAgterbosch avatar Oct 30 '23 15:10 BartAgterbosch

can you check if virtualization is enabled or not

Sooo... I'm having a similar issue, the proposed solution however doesn't seem to work, since wslEngineEnabled is already set to true, and DockerCli.exe doesn't seem to exist in the C:\Program Files\Docker\Docker folder, I do have a com.docker.cli.exe in the resources/bin folder however that doesn't seem to be the correct one either.. It just doesn't exist. Virtualization is enabled, wsl2 is installed and set as the default, and ubuntu is installed, but docker just has a neverending loop when started where it tries to start up the engine, tried several reinstalls and removing all temp files, running as admin, etc, didn't seem to make a difference. Now I wonder why I don't have the DockerCli.exe file...

download

It is enabled yes, also it works as it should because I have no issues running anything in virtualbox or vmware, is there by any chance a logfile somewhere that I can look at? Maybe that could give a clue

Try this,

  • Delete the docker
  • Delete the ubuntu
  • write this in window power shell(admin) wsl --update
  • wsl --set-default-version 2
  • write this in window power shell(admin) "dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart"
  • write this in window power shell(admin) "dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart"
  • Restart
  • Download Ubuntu
  • Delete temporary data: C:\Users<USER>\AppData\Roaming\Docker C:\Users\ProgramData\Docker C:\Users\ProgramData\DockerDesktop
  • Reinstall Docker
  • Run Docker in administrator mode.
  • (if it is still showing error then restart)

These are the above step that I done and it worked for me.

danisherror avatar Oct 30 '23 15:10 danisherror

can you check if virtualization is enabled or not

Sooo... I'm having a similar issue, the proposed solution however doesn't seem to work, since wslEngineEnabled is already set to true, and DockerCli.exe doesn't seem to exist in the C:\Program Files\Docker\Docker folder, I do have a com.docker.cli.exe in the resources/bin folder however that doesn't seem to be the correct one either.. It just doesn't exist. Virtualization is enabled, wsl2 is installed and set as the default, and ubuntu is installed, but docker just has a neverending loop when started where it tries to start up the engine, tried several reinstalls and removing all temp files, running as admin, etc, didn't seem to make a difference. Now I wonder why I don't have the DockerCli.exe file...

download

It is enabled yes, also it works as it should because I have no issues running anything in virtualbox or vmware, is there by any chance a logfile somewhere that I can look at? Maybe that could give a clue

Try this,

* Delete the docker

* Delete the ubuntu

* write this in window power shell(admin)  wsl --update

* wsl --set-default-version 2

* write this in window power shell(admin) "dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart"

* write this in window power shell(admin) "dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart"

* Restart

* Download Ubuntu

* Delete temporary data:
  C:\Users<USER>\AppData\Roaming\Docker
  C:\Users\ProgramData\Docker
  C:\Users\ProgramData\DockerDesktop

* Reinstall Docker

* Run Docker in administrator mode.

* (if it is still showing error then restart)

These are the above step that I done and it worked for me.

I did try that before actually and it didn't work then, but just to be sure I did it again just now following your steps, and unfortunately I'm getting the same result still.. I'm getting an ubuntu terminal window that seems to work just fine, installation also goes without a hitch, however the moment I start docker I get the same: "Starting the Docker Engine... Docker Engine is the underlying technology that runs containers" just looping infinitely

BartAgterbosch avatar Oct 30 '23 15:10 BartAgterbosch

can you check if virtualization is enabled or not

Sooo... I'm having a similar issue, the proposed solution however doesn't seem to work, since wslEngineEnabled is already set to true, and DockerCli.exe doesn't seem to exist in the C:\Program Files\Docker\Docker folder, I do have a com.docker.cli.exe in the resources/bin folder however that doesn't seem to be the correct one either.. It just doesn't exist. Virtualization is enabled, wsl2 is installed and set as the default, and ubuntu is installed, but docker just has a neverending loop when started where it tries to start up the engine, tried several reinstalls and removing all temp files, running as admin, etc, didn't seem to make a difference. Now I wonder why I don't have the DockerCli.exe file...

download

It is enabled yes, also it works as it should because I have no issues running anything in virtualbox or vmware, is there by any chance a logfile somewhere that I can look at? Maybe that could give a clue

Try this,

* Delete the docker

* Delete the ubuntu

* write this in window power shell(admin)  wsl --update

* wsl --set-default-version 2

* write this in window power shell(admin) "dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart"

* write this in window power shell(admin) "dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart"

* Restart

* Download Ubuntu

* Delete temporary data:
  C:\Users<USER>\AppData\Roaming\Docker
  C:\Users\ProgramData\Docker
  C:\Users\ProgramData\DockerDesktop

* Reinstall Docker

* Run Docker in administrator mode.

* (if it is still showing error then restart)

These are the above step that I done and it worked for me.

I did try that before actually and it didn't work then, but just to be sure I did it again just now following your steps, and unfortunately I'm getting the same result still.. I'm getting an ubuntu terminal window that seems to work just fine, installation also goes without a hitch, however the moment I start docker I get the same: "Starting the Docker Engine... Docker Engine is the underlying technology that runs containers" just looping infinitely

I have also done this, may be this work https://www.youtube.com/watch?v=dYiPms0xnIE

danisherror avatar Oct 30 '23 15:10 danisherror

I will give it a watch and a try, thanks

BartAgterbosch avatar Oct 30 '23 16:10 BartAgterbosch

I will give it a watch and a try, thanks

Sorry, man, this is all the help I can do this, I myself spent 3 days trying just to run the docker.

danisherror avatar Oct 30 '23 16:10 danisherror

I will give it a watch and a try, thanks

Sorry, man, this is all the help I can do this, I myself spent 3 days trying just to run the docker.

No worries, I appreciate it, I couldn't get it to work unfortunately, but I found a different solution for my usecase than running a docker image in windows, so for me it all worked out in the end

BartAgterbosch avatar Nov 01 '23 11:11 BartAgterbosch

I will give it a watch and a try, thanks

Sorry, man, this is all the help I can do this, I myself spent 3 days trying just to run the docker.

No worries, I appreciate it, I couldn't get it to work unfortunately, but I found a different solution for my usecase than running a docker image in windows, so for me it all worked out in the end

Please tell what the solution is!!! I really want Docker to work on my computer! Thank you!

Wonderer11 avatar Nov 13 '23 02:11 Wonderer11