Not able to login using docker login command

I am new to docker and trying to run docker on my windows 10 machine.

To pull image or create image using command line docker is asking for username and password and once enter it I am getting following exception.
Error response from daemon: Get “htps://”: dial tcp: lookup on no such host

This issue comes in my work network only. Out of work network it work perfectly. Because of proxy I guess.

To fix this issue I have added proxy in docker desktop setting but after that I started getting following issue.
Error response from daemon: Get “htps://”: Not Found

Please help. Thanks in advance.

Note: put “htps” intentionally in URL.