Error response from daemon: failed to do request: HTTPS request instead of HTTP

The issue was resolved by following these steps:

  1. Go to Troubleshoot in the Docker settings.
  2. Click on Clean/Purge Data.
  3. Check the box for Windows Containers.
  4. Back to Troubleshoot and clickReset to Factory Defaults.
  5. After that, reconfigure the Insecure Registries.

This process should help reset Docker to a working state and address any issues with container configurations.