Docker Community Forums

Share and learn in the Docker community.

Docker Container - How to Access SQL Server on Host Network using Integrated Security?

Hi

I have a docker container that is running a program that must connect to a SQL Server.
However, the SQL Server is on the LAN (to which the host machine is connected).

I can successfully ping the sql server instance - from the docker container.
However, when I try and establish an ODBC connection it fails, because integrated security from the container is not passing my AD credential to the sql server.

When I setup the username (my ad account) and password - integrated security does not seem to pass that throught.

The only other option is using a sql server username and password - but I do not want to do that. How do I send my AD credentials from an Docker container when trying to connect to SQL Server that is hosted on my LAN to which the host is connected?