title: Deploying .NET Core 1.1 App to Docker - Could not resolve CoreCLR path
body: <p>We are trying to deploy our .NET Core app to docker.</p>
  
  <p><em>Assume that our project base located on <code>/source.</code></em></p>
  
  <p>When we run <code>dotnet restore</code> <code>dotnet build</code> and <code>dotnet run</code> in <code>/source</code>, everything is ok.</p>
  
  <p>However when we trigger <code>dotnet publish -c Release -o publish</code>, go inside <code>publish</code> folder and attempt <code>dotnet OurAppName.dll</code> (running the app directly from dll), this error is throwed:</p>
  
  <pre><code>Could not resolve CoreCLR path. For more details, enable tracing by setting COREHOST_TRACE environment variable to 1
  </code></pre>
  
  <p>Summary: <code>dotnet run</code> works correctly in <code>source</code> folder, <code>dotnet OurAppName.dll</code> crashes in <code>publish</code> folder when trying to run dotnet core app in a docker container. What can be the problem?</p>
  
  <p>We already tried <code>latest</code> and <code>1.1-sdk-projectjson</code> tags in our <code>DockerFile</code>.</p>