docker login: incorrect username or password

When you run “docker login <myReg>” and Docker screams

$ docker login <myReg>:<myPort>
 Username: myUser
 Error response from daemon: Get unauthorized: incorrect username or password

This might actually not be the problem. Thank you very much Docker, for this useless piece of error.

While it might be possible that you’re just too stupid to type your username/password 500 times in a row (although not very likely), the error might be fixable by removing the line

"credsStore" : "desktop",



Schwupps! It worx! Fuck that Docker!

Keep in mind that going this route will save your credentials in CLEARTEXT in ~/.docker/config.json. Be aware of that if you do this. At least you will be able to log into your registry though.