Working with Docker
Although nowadays, it’s possible just to work with .NET tools to create microservices and run Docker containers, it helps to know about Docker. Thus, here, we look at the most important concepts about Docker, starting up a SQL Server instance running within a Docker container, creating a Dockerfile to build a Docker image for the games API service, and running these containers on the local system. In case you already know all about Docker, you can skip and move over to the .NET Aspire section, which does not need the Docker containers created here.
Before diving into building Docker images, why do we need containers at all? When deploying an application, it often occurs that the application fails to run. Often, a reason for this is a missing runtime on the target system or wrong or missing configuration settings. One way to resolve this is to prepare virtual machines (VMs) where everything is preinstalled. The disadvantage of this is the resources that...