title: .Net Core Docker Image cannot access database when running in docker
body: <p>I have a dotnet core application that tries to access to the database, when I run it in visual studio it works fine (probably because of my domain authentication) but when I try to build docker image and run it with <code>docker run -it --rm -p 8080:80 --name console console</code></p>
  
  <p>I'm getting this error, but I don't really understand why?
  Does anyone know how I can fix this?</p>
  
  <p>The connection string looks like this: <code>Data Source=DBTest; Initial Catalog=test;Integrated Security=True</code></p>
  
  <p>it works fine locally on my machine when I run through visual studio.</p>
  
  <p>Error:</p>
  
  <blockquote>
    <p>System.Data.SqlClient.SqlException (0x80131904): A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not acces
        sible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 0 - Access is denied.) ---> System.Com
        ponentModel.Win32Exception (5): Access is denied</p>
  </blockquote>