I am attempting to connect to two MSSQL servers using SQL Authentication. When I run my application on my machine with dotnet run, it can connect to both of the databases. When I put the application into a Docker container, the application can only connect to one of the databases. I get no error or timeout. It just sits there at 100% CPU. Both databases are on the same network and I have been told that there is no internal firewall.
I have it logging out its connection string during the OnConfiguring step of creating the context and the connection string is correct. I have tried using both the fully qualified domain name of the server as well as its IP address.
Any ideas on why I cannot connect to this server?