title: WARNING: Unable to find module repositories
body: <p>I tried to install Docker on activated windows server 2016 standard.
  I executed <code>“Install-Module -Name DockerMsftProvider -Repository PSGallery -Force”</code> but failed. It suggested that can not find PSGallery. I executed <code>&quot;Get-PSRepository&quot;</code>.</p>
  <p>The error:</p>
  <blockquote>
  <p><strong>WARNING: <em>Unable to find module repositories</em>.</strong></p>
  </blockquote>
  <p>I googled 3 ways to solve it but none of them worked.</p>
  <ol>
  <li><p>I executed <code>Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201     -Verbose -Force</code> successfully.</p>
  </li>
  <li><p>I installed chocolatey successfully.</p>
  </li>
  <li><p>I execute <code>&quot;powershell Register-PSRepository -Name &quot;PSGallery&quot; –SourceLocation &quot;https://www.powershellgallery.com/api/v2/&quot; -InstallationPolicy Trusted&quot;</code> but failed. It asked me to use <code>&quot;Register-PSRepository -Default&quot;</code>.</p>
  </li>
  </ol>
  <p>I tried <code>&quot;powershell Register-PSRepository -Default -Name &quot;PSGallery&quot; –SourceLocation &quot;https://www.powershellgallery.com/api/v2/&quot; -InstallationPolicy Trusted&quot;</code> but still failed.</p>
  <p>How can I solve this problem?</p>