bonfy / problems

record problems I have met and solved
2 stars 1 forks source link

Windows Docker Desktop Hyper-V 无法连接Local Server 问题 #17

Open bonfy opened 4 years ago

bonfy commented 4 years ago

问题描述:

Windows 的 Docker Desktop 突然无法连接 本地的 Local server, 报错 "An error occurred trying to connect ..."

问题分析: 这个其实是WIndows 自带的 Hyper-V 的报错,和 Docker其实无关,但是影响了 Docker 的连接

问题解决: 按照这个 重新 装一遍 Hyper-V; 如本来安装的 请重装 https://docs.microsoft.com/en-us/virtualization/hyper-v-on-windows/quick-start/enable-hyper-v

然后 check

https://github.com/MicrosoftDocs/Virtualization-Documentation-Private/issues/1503

This worked for me.

Open "Window Security" Open "App & Browser control" Click "Exploit protection settings" at the bottom Switch to "Program settings" tab Locate "C:\WINDOWS\System32\vmcompute.exe" in the list and expand it Click "Edit" Scroll down to "Code flow guard (CFG)" and uncheck "Override system settings" Start vmcompute from powershell as administrator net start vmcompute Restart Start Hyper-V Manager as administrator