Perhaps this is really basic stuff to anyone who's already been using Docker, but it took me a few hours to get this working. Initially it was a workaround to get a containerised .NET Core application communicating with a SQL Server database. The first step was to set up Docker support in the Visual Studio project:
.NET Core 6 and Docker: A Tale of Two Servers
.NET Core 6 and Docker: A Tale of Two Servers
.NET Core 6 and Docker: A Tale of Two Servers
Perhaps this is really basic stuff to anyone who's already been using Docker, but it took me a few hours to get this working. Initially it was a workaround to get a containerised .NET Core application communicating with a SQL Server database. The first step was to set up Docker support in the Visual Studio project: