Cannot enable Hyper-V service with Docker in windows 10 [closed] - docker

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 1 year ago.
Improve this question
i have already enabled virtualization in my BIOS, and also enable it in Windows feature
furthermore, the android emulator with android studio working well, but when i try to run Docker for windows, i encounter this problem?
i don't know where the problem is?

You need to autostart the hypervisor at startup.
Open a Powershell as Admin.
Paste the line:
bcdedit /set hypervisorlaunchtype auto
Then the hypervisor will start at the next boot and it should work.
For future information see:
https://d3v.one/windows-10-changing-hyper-v-support-at-boot-time/

In my case this worked for me More concrete steps:
got to ‘Apps and Features.
Select Programs and Features on the right under related settings.
Select Turn Windows Features on or off.
Unselect Hyper-V and click OK. (So I disable it)
Restart computer
After restart I go to:
‘Apps and Features.
Select Programs and Features on the right under related settings.
Select Turn Windows Features on or off.
select Hyper-V and click OK. (So I enable it)
Computer restart
After restart, then docker worked correctly.

What worked for my team was to make sure Containers and Hyper-V was enabled, then making sure Docker Desktop was updated.

I tried both options described here without success:
Unchecked Hyper-V in Windows feature(reboot), checked again(reboot)
Run bcdedit /set hypervisorlaunchtype auto as Administrator in Powershell and reboot the PC
SOLUTION: What solved the issue for me was to update the Docker Desktop version (from 3.6 to 4.3)

Related

docker daemon not running and docker desktop is stopped [closed]

Closed. This question is not about programming or software development. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 days ago.
Improve this question
can't run docker run command and docker desktop is stopped...
i tried reinstalling and upgraded wsl 1 to 2
Post "http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.24/containers/create": open //./pipe/docker_engine: The system cannot find the file specified. See 'docker run --help'.
The error suggests that docker is not running or properly installed, if you installed it, check the following.
From the search bar, type "Turn Windows features on or off" and make sure you enable the following:
Windows subsystem for Linux
virtual machine platform
windows hypervisor platform
You may also check the PATH of the docker if it is properly added in the environment variable.
From the search bar type "Edit the system environment variable" then click on "Environment variable" in the bottom right corner then under the System variable section choose "path" in the "variable" column then "edit"
A new window will open. Make sure that the following path is added
C:\Program Files\Docker\Docker\resources\bin
If you have done all these steps. You should make sure that the docker desktop app is running, then try to run docker commands.
If the problem still persists, you may uninstall the app and reinstall it again and it should work

"Docker Desktop stopped..." message after installation [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 12 months ago.
The community reviewed whether to reopen this question 5 months ago and left it closed:
Original close reason(s) were not resolved
Improve this question
Installed docker desktop for windows, after having installed the linux kernel update package and changing to wsl 2 version (virtualization is enabled) but i get the message "Docker Desktop stopped..." as shown below.
Tried:
uninstalling and reinstalling again
run application as administrator
From https://github.com/docker/for-win/issues/12545#issuecomment-1037225140
Just go to the config file at C:\Users\<username>\AppData\Roaming\Docker\settings.json, and set "wslEngineEnabled": true
I had to restart after saving.
I had the same problem. If you are using docker 4.5.0, try uninstall and install 4.4.4 instead. That worked for me.
A new version of Docker Desktop (4.5.1), released on 2022-02-15 fixes this problem.
If you are running Docker Desktop on Windows Home, installing 4.5.1 will switch it back to WSL 2 automatically. If you are running another version of Windows, and you want Docker Desktop to use the WSL 2 backend, you must manually switch by enabling the Use the WSL 2 based engine option in the Settings > General section. Alternatively, you can edit the Docker Desktop settings file located at %APPDATA%\Docker\settings.json and manually switch the value of the wslEngineEnabled field to true.
I also get the same problem after updating my Docker version from 4.4.4 to 4.5. It was crashed when I want to run my container today. I try to reinstall with 4.5 version and get the error "Docker Desktop stopped...". Then, I try to reinstall with 4.4.4 version, and now it just run perfectly fine like before.
Also had this issue on Mac (Intel chip) after updating to v4.5.0.
Reinstalling and a system restart solved the issue.

Can't run Docker inside of Windows, which is inside of VirtualBox [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 1 year ago.
Improve this question
I have a client who sent me instructions to connect to their VPN, but their VPN solution is only supported on Windows. Therefore, I'm trying to use Windows inside of VirtualBox to install Docker, so that I can pull down a container (Kali) to perform my assessment.
However, I've spent a little over 7 hours today troubleshooting. I'm trying to figure out what's wrong with either Windows or my configuration settings. I've gone from installing Windows Server 2019 in Amazon's EC2, Lightsail, Windows 10 in VMware Fusion, and now finally VirtualBox. No luck. Each of the solutions requires a lot of hacking and troubleshooting to figure out what's going on.
Host specs:
macOS Big Sur
2.9GHz Quad Core Intel Core i7Memory: 16GB
Storage: 500GB flash storage
I've allocated 4GB of memory to the host, along with 2 processor cores.
As you can see in the screenshot below, Windows 10 Pro is telling me that I need to enable something, which the Optional Features window on the left shows is enabled. As you can also see on the right hand side, I have hardware virtualization enabled in the VM.
It's literally the same thing documented here: https://www.configserverfirewall.com/windows-10/please-enable-the-virtual-machine-platform-windows-feature-and-ensure-virtualization-is-enabled-in-the-bios/
Here's all the things that I've tried thus far:
Attempt #1 (re: https://github.com/microsoft/WSL/issues/5363#issuecomment-640337948)
dism /Online /Enable-Feature /All /FeatureName:Microsoft-Hyper-V
bcdedit /set hypervisorlaunchtype auto
Here's the output:
After rebooting and trying to fire up Docker again, the same error occurs.
Attempt 2: Checking BIOS
Several have suggested doing this, but I have found no way to boot into the Windows BIOS using VirtualBox. Nothing here.
Attempt 3: Re-enabling WSL (re: https://github.com/microsoft/WSL/issues/5363#issuecomment-675786863)
Per the instructions in this comment, I have disabled WSL from the Optional Features section in Windows 10, rebooted, got an error about WSL 2 not being enabled, re-enabled WSL, rebooted again, and just ran into the exact same error.
Attempt 4: Disabled Hyper-V
Disabled Hyper-V and got the same error.
Attempt 5: Modifying the .VMX file (re: https://communities.vmware.com/t5/VMware-Fusion-Discussions/VMware-Fusion-12-1-0-Big-Sur-Host-Windows-10-Guest-Running-Slow/td-p/2814913)
However, no luck here either. Instead of the previous error, it fails with "The operation timed out because a response was not received from the virtual machine or container". I guess it got even slower.
Any new suggestions or pointers on how to resolve this?

Install Docker on Windows Server 2008 [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 5 years ago.
Improve this question
How does one install docker for Windows Server 2008?
I only see support for Windows Server 2016:
https://www.docker.com/docker-windows-server
Docker for Windows https://www.docker.com/docker-windows only works on Windows 10 Pro/2016.
For all other windows versions you must use Docker Toolbox
https://docs.docker.com/toolbox/toolbox_install_windows/. A subtle but important difference.
Docker Toolbox comes with the ominous warning:
Legacy desktop solution. Docker Toolbox is for older Mac and Windows systems that do not meet the requirements of Docker for Mac
and Docker for Windows. We recommend updating to the newer
applications, if possible.
So I guess this is not getting maintained anymore and may disappear.
You can install it with "Docker Toolbox for Windows" from here: Official Source
I had problem in installation but finally installed properly with these catches:
Hyper V must be enabled (wasn't possible when I was trying in windows server hosted in another VM, had to switch)
It was telling that virtualbox has error so it cannot continue :/ Solved it by uninstalling docker, virtualbox both, then removed all vbox* .dll files from c:\windows\system32\drivers folder. Afterwards when re-installed again, it worked.

Hypervisor is not running? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
I have a two part question:
first is that can anyone please tell me the command lines to execute in docker to start building a container and vm?
second is i have already built a VM using docker but the problem is whenever the building of VM reaches the stage where it written WAITING FOR VM TO BOOT it's stuck there and the error of HYPERVISOR IS NOT RUNNING comes even when the HYPER-V MACHINE MANAGEMENT is on automatic and running.
So please, help me get rid of this problem.
To create a VM which will run docker, use docker-machine: copy docker-machine-Windows-x86_64.exe as docker-machine.exe anywhere you want.
docker-machine create -d virtualbox
docker-machine start
But Make sure you have removed the Windows feature HyperV, as it is not compatible with VirtualBox/VMWare.
Or use the Hyper-V driver. You have to chose one or the other.
See "Getting Docker running on Windows 10"
as it turns out, HyperV and VirtualBox will not run together side-by-side in 64 bit modes. And Scott's blog post about rebooting to a hypervisorlaunchtype off mode of Windows 8.1 worked flawlessly for Windows 10.
So I didn't have to un-install the HyperV feature, but as it turns out, I did have to disable HyperV

Resources