title: Error installing SQL ODBC driver in windows docker container
body: <p>I'm new to powershell and docker, im trying to install odbc driver for sql server in a docker container with windows as base image.  This is what my dockerfile looks like, I have assembled the contents of this file from different sources. I have the executable msodbcsql_17.msi in the current working directory in which I'm running docker build.</p>
  <pre><code>FROM python:3-windowsservercore
  WORKDIR .
  SHELL [&quot;powershell&quot;, &quot;-Command&quot;, &quot;$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';&quot;]
  RUN  Start-Process msiexec.exe -ArgumentList '-i' './msodbcsql_17.msi' '/norestart /qn /quiet /passive IACCEPTMSODBCSQLLICENSETERMS=YES'
  
  WORKDIR /app
  COPY . /app
  RUN pip install --no-cache-dir -r requirements.txt
  EXPOSE 4000
  CMD [ &quot;python&quot;, &quot;run.py&quot; ]
  </code></pre>
  <p>Getting below error when i build it using docker build</p>
  <p><a href="https://i.stack.imgur.com/oyKeR.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/oyKeR.png" alt="enter image description here" /></a></p>
  <p>Can someone please help me fix this.</p>