Docker login problems

0
down vote
favorite
Created username password on hub.docker.com but I still get authentication error when I run docker run hello-world, and even when I run “docker login” then enter my credentials …but it shows a success message when I do “docker login -u myusername -p mypassword https://hub.docker.com” but even after that if I try to run docker run hello-world I get the same error “error response from daemon: login attempt to https://registry-1.docker.io/v2/ failed with status: 401 Unauthorized” (I am using windows 10 OS)