The issue was resolved by following these steps:
- Go to Troubleshoot in the Docker settings.
- Click on Clean/Purge Data.
- Check the box for Windows Containers.
- Back to Troubleshoot and clickReset to Factory Defaults.
- After that, reconfigure the Insecure Registries.
This process should help reset Docker to a working state and address any issues with container configurations.