在 Docker 容器中托管 ASP.NET CoreHost ASP.NET Core in Docker containers

下面的文章可用于了解如何在 Docker 中托管 ASP.NET Core 应用:The following articles are available for learning about hosting ASP.NET Core apps in Docker:

容器和 Docker 简介Introduction to Containers and Docker
容器化是软件开发的一种方法,通过该方法可将应用程序或服务、其依赖项及其配置一起打包为容器映像。了解相关内容。See how containerization is an approach to software development in which an application or service, its dependencies, and its configuration are packaged together as a container image. 可对该映像进行测试,然后将其部署到主机。The image can be tested and then deployed to a host.

什么是 DockerWhat is Docker
了解如何将 Docker 作为一种开源项目,用于将应用自动部署为可在云或本地运行的便携式独立容器。Discover how Docker is an open-source project for automating the deployment of apps as portable, self-sufficient containers that can run on the cloud or on-premises.

Docker 术语Docker Terminology
了解 Docker 技术的术语和定义。Learn terms and definitions for Docker technology.

Docker 容器、映像和注册表Docker containers, images, and registries
了解如何将 Docker 容器映像存储在映像注册表中,以实现跨环境的一致部署。Find out how Docker container images are stored in an image registry for consistent deployment across environments.

ASP.NET Core 的 Docker 映像 了解如何生成和 Docker 化 ASP.NET Core 应用。ASP.NET Core 的 Docker 映像 Learn how to build and dockerize an ASP.NET Core app. 了解由 Microsoft 维护的 Docker 映像并检查用例。Explore Docker images maintained by Microsoft and examine use cases.

Visual Studio 容器工具Visual Studio Container Tools
了解 Visual Studio 如何支持在用于 Windows 的 Docker 上生成、调试和运行面向 .NET Framework 或 .NET Core 的 ASP.NET Core 应用。Discover how Visual Studio supports building, debugging, and running ASP.NET Core apps targeting either .NET Framework or .NET Core on Docker for Windows. Windows 和 Linux 容器均受支持。Both Windows and Linux containers are supported.

发布到 Azure 容器注册表Publish to Azure Container Registry
了解如何通过 Visual Studio 容器工具扩展使用 PowerShell 将 ASP.NET Core 应用部署到 Azure 上的 Docker 主机。Find out how to use the Visual Studio Container Tools extension to deploy an ASP.NET Core app to a Docker host on Azure using PowerShell.

配置 ASP.NET Core 以使用代理服务器和负载均衡器Configure ASP.NET Core to work with proxy servers and load balancers
对于托管在代理服务器和负载均衡器后方的应用,可能需要附加配置。Additional configuration might be required for apps hosted behind proxy servers and load balancers. 通过代理传递的请求通常会遮盖初始请求相关信息,例如方案和客户端 IP。Passing requests through a proxy often obscures information about the original request, such as the scheme and client IP. 可能必须将请求相关的一些信息手动转发给应用。It might be necessary to forwarded some information about the request manually to the app.