中的Hyper-V与Windows Server使用泊坞窗和撰写2016

问题描述:

我现在有一个Hyper-V虚拟机,其客户操作系统是微软服务器2016中的Hyper-V与Windows Server使用泊坞窗和撰写2016

我能够安装泊坞窗服务,然后使用命令行创建一个码头图像

我想尝试在Visual Studio中使用撰写相同的过程,但它看起来像只会在工具箱安装时才起作用。我安装了Toolbox,当我建立的时候,我得到了一个关于卷规格的错误,我相信这是因为目标操作系统是Linux。

由于Windows Server 2016与Docker for Windows不兼容,当针对Windows Containers onc只能使用service + powerhsell,并且他们想在Visual Studio中使用Compose时,我必须禁用hyper-visor内部并确保Linux VM正在运行?

我对使用Docker的windows server + VS的工作流有点困惑。谢谢你的澄清。

编辑:

我卸载工具箱简化环境,我下载构成是这样的:

Invoke-WebRequest " https://github.com/docker/compose/releases/download/1.15.0-rc1/docker-compose-Windows-x86_64.exe" -UseBasicParsing -OutFile $Env:ProgramFiles\docker\docker-compose.exe 

而现在的编译错误是:

ERROR: for dockercompose1517717654_azurecontainersite_1 __init__() got an 
unexpected keyword argument 'cpu_count' 
ERROR: for azurecontainersite __init__() got an unexpected keyword 
argument 'cpu_count' 
Traceback (most recent call last): 
File "docker-compose", line 3, in <module> 
File "compose\cli\main.py", line 68, in main 
File "compose\cli\main.py", line 118, in perform_command 
File "compose\cli\main.py", line 926, in up 
File "compose\project.py", line 424, in up 
File "compose\parallel.py", line 69, in parallel_execute 
TypeError: __init__() got an unexpected keyword argument 'cpu_count' 
Failed to execute script docker-compose. 

这时视觉Studio工具仅支持Linux容器。如果/当这种变化,我会更新这个答案。

还与撰写获得VS到服务器2016上工作,我安装泊坞窗的边缘版本的Windows使用以下链接:

https://store.docker.com/editions/community/docker-ce-desktop-windows