title: DownloadString Exception when installing Chocolatey on Docker Windows Container
body: <p>I have been trying to install Chocolatey on a windows container and I get the below DownloadString exception.
  Tried with <code>RUN powershell -Command [Net.ServicePointManager]::SecurityProtocol = [Net.ServicePointManager]::SecurityProtocol -bor [Net.SecurityProtocolType]::Tls12</code> to add Tls12 explicitly. Tried <code>FROM mcr.microsoft.com/windows:20H2</code> and <code>FROM mcr.microsoft.com/dotnet/framework/aspnet:4.8</code> base images and I get the same error.</p>
  <p>Dockerfile</p>
  <pre><code>ROM mcr.microsoft.com/windows/servercore:ltsc2019
  
  USER ContainerAdministrator
  
  RUN powershell -Command [Net.ServicePointManager]::SecurityProtocol = [Net.ServicePointManager]::SecurityProtocol -bor [Net.SecurityProtocolType]::Tls12
  
  RUN powershell -Command Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
  </code></pre>
  <p>Exception I am getting -</p>
  <pre><code>Exception calling &quot;DownloadString&quot; with &quot;1&quot; argument(s): &quot;The underlying
  connection was closed: An unexpected error occurred on a send.&quot;
  At line:1 char:166
   + ...  -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('ht ...
   +                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
      + FullyQualifiedErrorId : WebException
  </code></pre>
  <ul>
  <li>Host OS - Windows 10 Enterprise x64 v10.0.19044 Build 19044</li>
  <li>Hyper-V Manager - v10.0.19041.1</li>
  </ul>