我可以 运行 Dockers 上的 .Net Web 应用程序 windows 吗?

Can I run a .Net web application on Dockers for windows?

我可以在 Docker 容器中将 .Net Web 应用程序(通常 运行s on Windows 7 等)打包到 运行,然后执行它在 'any' 主机上支持 Docker?
例如 Linux 上的 Docker 或 Windows 上的 Docker 等?

您至少可以使用 dotnet core 图片。

来自Getting Started with .NET and Docker

.NET Core is the open-source version of .NET which is available now. It has a different focus from the full .NET and it’s a modular framework, so you only include the parts you need – the framework itself is composed from NuGet packages.

Before you can run .NET Core apps on a Linux (or OS/X, or Windows) machine, you need to install the DNX runtime. This isn’t the full .NET runtime that we have on Windows; it’s a slimmed-down .NET Execution Environment (DNX).

When you define a Docker image, you start from an existing base image, and the sixeyed/coreclr-base image which is publically available on the Hub already has the DNX installed and configured. To containerize your own .NET Core app, just use that base image and add in your own code.