title: Run sqlcmd in Dockerfile
body: <p>Is it possible to run sqlcmd inside a dockerfile?</p>
  
  <p>First I am creating a layer</p>
  
  <pre><code>FROM microsoft/mssql-server-windows-developer:2017-latest
  </code></pre>
  
  <p>After that I accept the eula and set the sa password like this:</p>
  
  <pre><code>ENV ACCEPT_EULA=Y
  
  ENV SA_PASSWORD=VerySecret!
  </code></pre>
  
  <p>After doing so I am trying to execute a simple sample query:</p>
  
  <pre><code>RUN sqlcmd -S "localhost" -U "SA" -P "VerySecret!" -Q "select name from master.dbo.sysdatabases"
  </code></pre>
  
  <p>Unfortunately the docker build command breaks with the error message "Sqlcmd: 'name from master.dbo.sysdatabases': Unexpected argument. Enter '-?' for help."</p>
  
  <p>Am I doing something wrong?</p>