ASP.NET核心docker生成错误
我是ASP.NET Core和Docker的新手。 我创build了一个简单的ASP.NET Core 2.0应用程序,并尝试在Windows上使用Docker。 但是,我得到这个错误:
Your Docker server host is configured for 'Linux', however the docker-compose project targets 'Windows'.
虽然它似乎是相当丰富的错误,我无法find'为Windowsconfiguration主机'
它是docker-compose.dcproj
文件,您可以在其中设置要定位的操作系统:
<DockerTargetOS>Linux</DockerTargetOS>
要将docker守护进程切换到相同的操作系统,您可以使用Docker托盘图标或Docker设置窗口(可从同一菜单访问):
- ASP.NET核心 – 在Visual Studio 2015中通过Docker进行debugging时的问题
- 无法使用Docker在Azure上的VM上部署ASP .net vnext应用程序
- Docker安装了Python的ASPNET Core容器
- ASP.NET 5和Docker错误:/ bin / sh:[dnx,:找不到命令
- AWS Codebuild .NET Core构buildDocker镜像
- Docker容器中的asp.net核心与Azure应用服务
- 远程debugging.NET核心Linux Docker容器 – “当前源与内置到.dll中的版本不同”
- 我如何提供应用程序configuration到我的在Docker容器中运行的.NET Core Web API服务?
- 什么是configuration需要设置为asp.net的核心Web组件缩放?