Try to execute following command
service docker stop
rm ~/.docker/config.json
service docker start
then try docker login it will ask for username and password
Try to execute following command
service docker stop
rm ~/.docker/config.json
service docker start
then try docker login it will ask for username and password