title: Failed to determine the https port for redirect in Docker
body: <p>I'm trying to deploy an asp.net-core webapi service which is exposed from 80 port using:</p>
  
  <pre><code>docker run --rm -p 80:80 --name radicadorrest -it radicadorrest
  </code></pre>
  
  <p>error:</p>
  
  <blockquote>
    <p>warn:
    Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager[35]
         No XML encryptor configured. Key {e60978fd-16bc-4ff2-8525-39b5d0c36be5} may be persisted to storage in  unencrypted form. Hosting environment: Production Content root path:
    /app Now listening on: <a href="http://[::]:80" rel="noreferrer">http://[::]:80</a> Application started. Press
    Ctrl+C to shut down.</p>
    
    <p>warn:
    Microsoft.AspNetCore.HttpsPolicy.HttpsRedirectionMiddleware[3]
         Failed to determine the https port for redirect. Application is shutting down...</p>
  </blockquote>
  
  <p>I have tried using different ports but I get the same error.</p>
  
  <p>Docker version:</p>
  
  <blockquote>
    <p>Client: Version:      17.09.1-ce<br>
    API version:  1.32<br>
    Go version:  go1.8.3<br>
    Git commit:   19e2cf6<br>
    Built:        Thu Dec  7 22:25:13 2017<br>
    OS/Arch:      linux/amd64  </p>
    
    <p>Server: Version:      17.09.1-ce<br>
    API version:  1.32 (minimum version1.12)<br>
    Go version:   go1.8.3<br>
    Git commit:   19e2cf6<br>
    Built:        Thu Dec  7 22:26:35 2017 OS/Arch:      linux/amd64  Experimental:false</p>
  </blockquote>
  
  <p>I have also trying on Windows with the same result.</p>