How to connect to a external SQL Server from inside container - asp.net 3.5, connection string

Probably you have to expose port using bash while starting the docker itself.
1433 on PC does not correspond to 1433 on docker.
exposing simply associated this connection

docker run -i --expose=22 b5593e60c33b bash

Source: