在Docker中切换到Linux容器时出错

时间:2020-02-20 05:39:41

标签: docker windows-10 docker-for-windows linux-containers

我已经安装了docker。当它在Windows容器中运行时,它可以正常工作。但是,如果我切换到Linux容器时遇到错误。

操作系统:Windows 10 Docker桌面:2.2.0.3

错误:

SELECT d.id, d.field2, d.field3
  FROM d
  WHERE d.field1 = "value-x"
  AND ARRAY_CONTAINS(["an id"], d.id)

2 个答案:

答案 0 :(得分:7)

根据this

尝试以下操作:

1, Open "Window Security"
2, Open "App & Browser control"
3, Click "Exploit protection settings" at the bottom
4, Switch to "Program settings" tab
5, Locate "C:\WINDOWS\System32\vmcompute.exe" in the list and expand it
6, Click "Edit"
7, Scroll down to "Code flow guard (CFG)" and uncheck "Override system settings"
8, Start vmcompute from powershell "net start vmcompute"

答案 1 :(得分:0)

我认为最新更新存在问题。正如here

所述,人们在2.2.0.3(42716)版本中也遇到同样的问题

对我没有用的尝试

  1. 已禁用控制流防护https://stackoverflow.com/a/60313592/1027250(如果不起作用,请重新打开)
  2. 禁用Linux子系统(git issue)。
  3. 重新安装。

对我有用的是恢复出厂设置,如建议here所示。卸载似乎不会清除设置,