title: Docker run nanoserver not starting
body: <p>I am trying to run the <a href="https://hub.docker.com/r/microsoft/nanoserver/" rel="nofollow noreferrer">nanoserver</a> image on a windows server 2016 (ec2 instance, or Azure VM) with this command:</p>
  
  <pre><code>docker run -d --name nanoms microsoft/nanoserver:latest
  </code></pre>
  
  <p><em>edit: actually it is not just nanoserver, I get the same problem running microsoft/windowsservercore:latest.</em></p>
  
  <p>But if I then run (<em>docker ps -a</em>) it then shows the status as Exited. 
  <em>Docker logs nanoms</em> - only shows "c:>" (so no errors)</p>
  
  <p>If I use <em>-it</em> instead of <em>-d</em> then it shows some 'stuff' and hangs until I hit ctrl-C, but it has actually started and I can 'login'!</p>
  
  <p>'stuff' shown:</p>
  
  <blockquote>
    <p>[2J[H[1H[37;40m[K[2H[K[3H[K[4H[K[5H[K[6H[K[7H[K[8H[K[9H[K[10H[K[11H[K[12H[K
    [13H[K[14H[K[15H[K[16H[K[17H[K[18H[K[19H[K[20H[K[21H[K[22H[K[23H[K[24H[K[25H[K
    [1;1HMicrosoft Windows [Version 10.0.14393] (c) 2016 Microsoft
    Corporation. All rights reserved.</p>
  </blockquote>
  
  <p><em>edit 2: The above 'stuff' happens when I run the command in powershell. If I run the command in cmd prompt then using -it does successfully connect. BUT -d still always exits.</em> </p>
  
  <p>Is there something I am doing wrong here? Is there something special with windows server 2016 and docker that means -d does not work? Starting a container with -d is kinda fundamental I would think...</p>
  
  <p>I have tried restarting the server, same result.</p>
  
  <p>The nanoserver is a 10.0.14393.693 based image (.823 had some problem).</p>
  
  <p>=================</p>
  
  <p>To recreate the issue:</p>
  
  <ol>
  <li>Spin up either an EC2 instance or an Azure VM, OS == Windows Server 2016 - with Containers.</li>
  <li>RDP in, fire up a CMD window (or Powershell)</li>
  <li>Run the command: docker run -d microsoft/nanoserver</li>
  <li>Once that completes run the command: docker ps -a</li>
  <li>Verify, is the container active or exited?</li>
  </ol>
  
  <p>My expectation is that is should be Active. Is my expectation wrong?</p>