Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/docker/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
针对非Windows Docker主机的Windows Docker映像_Docker_Visual Studio Code - Fatal编程技术网

针对非Windows Docker主机的Windows Docker映像

针对非Windows Docker主机的Windows Docker映像,docker,visual-studio-code,Docker,Visual Studio Code,我正在跟踪,当通过vs代码构建图像时,我遇到以下错误: SECURITY WARNING: You are building a Docker image from Windows against a non-Windows Docker host. All files and directories added to build context will have '-rwxr-xr-x' permissions. It is recommended to double check and r

我正在跟踪,当通过vs代码构建图像时,我遇到以下错误:

SECURITY WARNING: You are building a Docker image from Windows against a non-Windows Docker host. All files and directories added to build context will have '-rwxr-xr-x' permissions. It is recommended to double check and reset permissions for sensitive files and directories.

我在Windows 10环境下运行它,为什么会发生这种情况,以及在哪里寻找解决问题的方法?

我假设您正在运行docker desktop。单击系统托盘中的Docker图标时,您会看到什么?(您应该看到“切换到Linux容器…”或“切换到Windows容器…”它说:
docker desktop community
-版本:2.4.0.0(48506),我可以在哪里找到:“切换到Windows容器…”,这意味着什么?切换后:
清单列表项中没有与windows/amd64 10.0.18363匹配的清单
切换守护进程(Docker引擎)
“实验性”:true
但是现在我得到:
命令'/bin/sh-c g++-o myapp main.cpp'返回了一个非零代码:Windows系统调用失败:具有指定标识符的虚拟机或容器未运行。(0xc0370110):Windows系统调用失败:具有指定标识符的虚拟机或容器未运行。(0xc0370110)终端进程r build--pull--rm-f“Dockerfile”-t dockerhelloworld:latest“.”以退出代码终止: