title: Docker Windows Containers CMD - Command not running
body: <p>I have a docker image that ends with the following CMD:</p>
  
  <p><code>CMD ["powershell", "c:\install\settings\install.ps1"]</code></p>
  
  <p>or</p>
  
  <p><code>CMD powershell c:\install\settings\install.ps1</code></p>
  
  <p>It did not execute (or perhaps the volume is not mounted yet).</p>
  
  <p>Settings are placed in a mounted volume, and it is started with:</p>
  
  <p><code>docker run -d -p 80:80 --name openid --rm -v D:\settings\:c:\install\settings mydocker</code></p>
  
  <p>If I run the command after starting the docker image:</p>
  
  <p><code>docker exec openid powershell c:\install\settings\install.ps1</code></p>
  
  <p>It runs fine.</p>
  
  <p>Is there a way of doing this?</p>
  
  <p>Or is there a better way of deploying an IIS website with webdeploy and custom <code>SetParameters.xml</code>?</p>