Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error response from daemon: hcsshim::CreateComputeSystem: The virtual machine could not be started because a required feature is not installed

I have downloaded Docker Desktop onto a Windows 10 Pro machine (1809). I am trying to do a docker run hello-world command, but I receive this error:

docker: Error response from daemon: hcsshim::CreateComputeSystem 0e3c581b7316f66fd396f6007f3260ded7d934c5e6d53c9fedba279b9c0044c2:
        The virtual machine could not be started because a required feature is not installed.
(extra info: {"SystemType":"Container","Name":"0e3c581b7316f66fd396f6007f3260ded7d934c5e6d53c9fedba279b9c0044c2","Owner":"docker","IgnoreFlushesDuringBoot":true,"LayerFolderPath":"C:\\ProgramData\\Docker\\windowsfilter\\0e3c581b7316f66fd396f6007f3260ded7d934c5e6d53c9fedba279b9c0044c2","Layers":[{"ID":"08298683-92e6-5d81-8efa-07df462bc835","Path":"C:\\ProgramData\\Docker\\windowsfilter\\da67c59750c9d72f917f4169d58fff3285b27d01c30c159f437b8ec8bace3fd3"},{"ID":"8ffbf2ed-0796-5433-969d-24c7c60eed76","Path":"C:\\ProgramData\\Docker\\windowsfilter\\20785c70b0b36964948ecf0180bbe644306ed1f70686864f3cf476229f3ae054"},{"ID":"d0522a69-fb9e-53ff-8eec-0492669a13de","Path":"C:\\ProgramData\\Docker\\windowsfilter\\2c662c56ef3ffafe3f5cb6180ac24154c081866bb0a6c0e3c27fa5a3bcc957a7"}],"HostName":"0e3c581b7316","HvPartition":true,"EndpointList":["63F24577-D177-4DE9-8071-9325D00D5499"],"HvRuntime":{"ImagePath":"C:\\ProgramData\\Docker\\windowsfilter\\2c662c56ef3ffafe3f5cb6180ac24154c081866bb0a6c0e3c27fa5a3bcc957a7\\UtilityVM"},"AllowUnqualifiedDNSQuery":true}).
like image 430
Cameron Avatar asked Aug 09 '19 14:08

Cameron


2 Answers

I had the same issue. Run Windows Powershell as "Administrator" and run the following commands to enable containers and Hyper -V. Restart machine after executing the second command -

Enable-WindowsOptionalFeature -Online -FeatureName containers –All
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V –All
like image 66
CloudArch Avatar answered Sep 21 '22 14:09

CloudArch


Enabling virtualization for BIOS fixed my issue. See below url, or search google to enable virtualization in BIOS. https://appuals.com/how-to-enable-vt-x-in-windows-10/

In Docker website it is mentioned that virtualization should be enabled as part of installation.

like image 30
DAre G Avatar answered Sep 19 '22 14:09

DAre G