How to use windows authentication with SQL server docker container
<p>I have gone through all the examples I could find online for building docker container based applications. I would want to run two services running in two docker containers: </p>

<ol>
<li>A windows container running ASP.NET</li>
<li>A windows container running SQL Server</li>
</ol>

<p>Easy job and many examples. However, in all examples you need to use SQL authentication and to provide a hard-coded SA password as an environment variable when running the SQL server container. You also need to hard code the SA password into the connection string in the ASP.Net code (or also provide it in some other manner in a configuration file, etc.) </p>

<p>Bottom line in all examples the password is hard-coded somewhere. </p>

<p>In most applications we develop now, we actually use windows authentication instead or use a grouped managed service account instead. But as far as I know, you cannot add a windows container to a domain, thus the SQL server is not part of the windows domain so I don't see a way to use windows authentication here.</p>

<p>So does any one have an alternative to hard-coding passwords this way ? </p>