failed to build: Get https://registry-1.docker.io/v2/microsoft/aspnetcore/manifests/1.1: unauthorized: incorrect username or password

The user id and the corresponding email which is used to login to dockerhub are actually two different things in this context.

One needs the id, of the username, and not the email to get images.


Resolve

by changing between the two by doing a

> docker logout

on the command line then

> docker login

and login with your id.

Note that the id can be found on the docker site after you login with your email.

You will be prompted for you for the credentials. Also again, for that user name, do not use the email address.