Docker Community Forums

Share and learn in the Docker community.

Connecting my Service in a Docker Container to SQL Server on-prem

Currently, I have a group of ASp.net core Web API services that I put into a Docker image and want to connect these services to an on-prem database. So far, I have been unsuccessful.

What am I doing wrong?

Docker file

in the Dockerfile have the setting

EXPOSE 80

EXPOSE 443

EXPOSE 1433

docker run -p 8083:80 -p 1433:1433 --rm dnaas/myservice:latest