
Make sure that an instance of SQL Server is running on the host and accepting TCP/IP connections at the port. The container does the usual SpringBoot initialization but when it tries to call the SQL Server I get the following error: .SQLServerException: The TCP/IP connection to the host myexternalsqlserver.domain, port 1433 has failed.

However, now I'm trying to Dockerize the api app. If I run the app from IntelliJ all is well, the app can call the SQL Server, execute the command and returns a resultsset. I am using the Microsoft SQL Server JDBC connector to communicate with the instances. However, it's reachable from my desktop using either IntelliJ or SQL Clients. The SQL Server instance is located on-premises (not local SQL Server instances). I've developed a SpringBoot(Java) application that calls out to an external SQL Server on port 1433.
