Docker Community Forums

Share and learn in the Docker community.

Cannot Connect to on-prem SQL databases

Cannot connect to on Premise SQL server on port 1433 using Docker hub. The application is a .net 3.1 core and .net 5. I used the port switch -p 1433:1433 -p 80:8080. The site comes up but cannot connect to the database. I updated the database connection to use an ip address and port,1433 in the connection string and verified it with SQL Management studio.