Docker Desktop crashed while starting up on Oracle VM Wins 10 - docker

I installed Docker Desktop on Windows 10 Enterprise 21H2 on Oracle VM 6.1.34 r150636 (Qt5.6.2).
While starting up Docker, it errored out 'something went wrong...' and then the app crashed.
I have already turned on the following options on the VM and Windows
'VM Settings > System > Process > enable nested vt-x/amd-v
Windows Feature: Windows Subsystem for Linux
Does anyone have any ideas how to make Docker run on VM?
Thanks

Related

can not enable hyper-v service in windows 10

I am new with docker.
I have downloaded docker desktop 4.3 version and installed when I start it
give error can not enable hyper-v service.
however windows hyper-v and container are enabled in windows features and BIOS also I enabled the hyper-v using powershell to start automatically.
I searched two days but not found solution answer.

Docker failed to initialize, Docker Desktop is shutting down win10 Home

ErrorI got an error Docker failed to initialize, Docker Desktop is shutting down.
I uninstalled then restart my computer then I reinstalled again with admin. But couldnt solve this error. I used Windows 10 Home Single Language
How can I solve this error? (I attached screenshot)
Thanks
In windows 10 home, hiperv(hypervisor) to available(but you can also enable it). so you have to use wsl, so follow this guide on how to install docker desktop with wsl.
if you followed the guide, please check,
Windows subsystem for Linux
Virtual Machine Platform
are enabled in Windows features, check this guide if you don't know how to enable them.

Docker Desktop cannot switch to Windows Container

I have installed latest Docker Desktop. Currently unable to switch to Windows container. The option is blocked from task bar :
I am running Windows 10 Home 64-bit Build 19042.
You need windows 10 Pro or Enterprise to have access to Windows containers.
Source
The other answer will indeed switch your daemon mode to Windows, but you will not be able to pull any Windows container.
Update 2022:
The link above now mentions that it should work for
Windows 11 64-bit: Home or Pro version 21H2 or higher, or Enterprise or Education version 21H2 or higher.
Windows 10 64-bit: Home or Pro 21H1 (build 19043) or higher, or Enterprise or Education 20H2 (build 19042) or higher.
I had spent hours debugging this issue and have to purchase win 10 pro license as well but still faced the same issue, by default it takes linux containers, switching to windows shows waiting forever, anyway here is how I fixed:
Windows Pro
Close/Shutt down the client by right clicking on the tiny icon on taskbar, and wait for a minute or two to have it close itself.
3.Open command prompt with Administrative rights
Type in this command:
c:\Program Files\Docker\Docker\resources>dockerd.exe
Open another command prompt with Administrative rights
C:\Program Files\Docker\Docker>DockerCli.exe -SwitchDaemon
Type "C:\Program Files\Docker\Docker>docker version" command to make sure it has switched to windows containers, it should look like attached screenshot
as per the latest Docker Desktop version, your settings should look like this
Quit Docker Desktop, and open again, Hope it helps some.
This command will change from windows to linux and vice versa.
I could not switch it easily, even using Altaf's approach. Eventually I went to Services (services.msc) and disabled Docker Desktop Service and updated docker service (Docker Engine) to make sure it can automatically start (for example, make sure the daemon.json config file exists in the location as the service command specified).
Then I can verify the result by typing docker version (in non-Administrative command prompt).
https://kontext.tech/article/1216/how-to-change-docker-data-root-path-on-windows-10#h-switch-to-windows-containers

Error on Installing Docker: Please enable the Virtual Machine Platform Windows feature and ensure virtualization is enabled in the BIOS

I'm having a Windows VM running Windows 10 Pro and I'm trying to install Docker running with WSL2.
However, the I'm bumping into the error below and I can confirm that Virtual Machine Platform Windows feature is already enabled.
I had this same error and followed these steps for VMWare,
Go to VM Settings >> Hardware >> Processors
In the Virtualization Engine Box, select the checkbox 'virtualize intel vt-x/ept or amd-v/rvi'
Restart your VM

Do I need Windows 10 Pro to run Docker? Error: Hardware assisted virtualization and data execution protection must be enabled in the BIOS

I just installed Docker after upgrading my Windows 10 Home x64 to the version 2004 with the OS build 19041.264 (I needed to upgrade because Docker required me to have an OS buld >19018). Now if I want to launch docker I get this error Hardware assisted virtualization and data execution protection must be enabled in the BIOS. I have already read this (it is old) question, but because they let me install docker on my windows 10 home I assume that I can somehow run it without hyper-v, cuz I can't download it.
The Hyper-V role cannot be installed on Windows 10 Home. Hyper-V is used to run Linux kernel on Windows.
https://learn.microsoft.com/en-us/virtualization/hyper-v-on-windows/quick-start/enable-hyper-v
The alternative solution is you can use Virtual box instead of Microsoft native Hyper-V. Docker toolbox comes with Virtual box. You can get details installation steps from below link.
https://docs.docker.com/toolbox/toolbox_install_windows/
You will need Windows 10 Pro to run docker. Home edition is not useful for the purpose.

Resources