I'm currently working on a .NET Core project. When I run the application on my local machine (Windows) I can connect to a SQL Server database using my windows credentials.
I am attempting to shift into using a devcontainer within Visual Studio Code, but when I run the same application in the container (Linux) I get an error:
An exception of type 'Microsoft.Data.SqlClient.SqlException' occurred in Microsoft.Data.SqlClient.dll but was not handled in user code:
A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: TCP Provider, error: 35 - An internal exception was caught)
I'm not sure where to go from here. What did I miss?