Connect to external SQL Server database from Docker container (SSL error)
How can I connect with external database available by IP 123.123.123.123,2401 (ip is random) from my Docker container. My connection string below, I do have the TrustServerCertificate=True option which was recommended to resolve that problem:
server=123.123.123.123,2401; database=base_prod; User=XXX; Password=XXX; Application Name=test_PROD; TrustServerCertificate=True
While running container I get error
A connection was successfully established with the server, but then an error occurred...