Containerization of Microservices
After building clients and services with the previous chapters, now is the time to make the services ready for publishing. With Docker, we can prepare images that have everything included to run the complete solution.
In this chapter, you’ll start learning the most important parts of Docker, building Docker images, running containers, and using .NET Aspire to run a solution consisting of multiple services locally on your developer system, including SQL Server running in a Docker container, as well as making use of native ahead-of-time (AOT) to create platform-specific native applications.
In this chapter, you’ll learn about the following topics:
- Working with Docker
- Building a Docker image
- Running the solution with .NET Aspire
- Using native AOT with ASP.NET Core