title: Docker: launch a mssql script outside of the docker image
body: <p>I've been trying to run an MSSQL script on my docker and it always fails... is my syntax wrong or something... I've looked this post but it doesn't work
  <a href="https://stackoverflow.com/questions/34779894/executing-sql-scripts-on-docker-container">Executing SQL scripts on docker container</a></p>
  
  <pre><code>docker exec mssql '/opt/mssql-tools/bin/sqlcmd -S localhost -U SA -P gitgood12345 -q &lt;/CRE.sql'
  </code></pre>
  
  <p>this returned an error</p>
  
  <pre><code>rpc error: code = 2 desc = oci runtime error: exec failed: container_linux.go:262: starting container process caused "exec: \"/opt/mssql-tools/bin/sqlcmd -S localhost -U SA -P ************** -q &lt;/CRE.sql\": stat /opt/mssql-tools/bin/sqlcmd -S localhost -U SA -P AucMa1633485 -q &lt;/CRE.sql: no such file or directory"
  </code></pre>
  
  <p>I also tried something like this...</p>
  
  <pre><code>sudo docker exec -it mssql /opt/mssql-tools/bin/sqlcmd -S localhost -U SA -P 'gitgood12345' -q &lt;/CRE.sql
  </code></pre>
  
  <p>The command returns me this error, which I'm not sure why....</p>
  
  <pre><code>Sqlcmd: '-q': Missing argument. Enter '-?' for help.
  </code></pre>
  
  <p>Please help me... the second method used to work, I think I forget a parameter or something...</p>