title: Difference between installing service in Windows Container and Windows Server 2016?
body: <p>I have a service application that will install correctly in Windows Server 2016 Standard using the following command:</p>
  
  <pre><code>PS C:\Service&gt; c:\\mysvc\\mysvc.exe -install
  Service installed successfully
  </code></pre>
  
  <p>If I run the same thing when in a Dockerfile using:</p>
  
  <pre><code>RUN c:\\mysvc\\mysvc.exe -install
  </code></pre>
  
  <p>I get the following output:</p>
  
  <blockquote>
    <p>The command 'cmd /S /C c:\svc\mysvc.exe -install' returned a
    non-zero code: 3221225781</p>
  </blockquote>
  
  <p>I'm not sure why it is behaving differently, or where I could check to get some better ideas as to the cause of the error.</p>