Unauthorized: authentication required when running Docker build

C:\source\Sample2>docker login
Hello Folks,

On a windows Server 2016 with Docker version
Client:
Version: 1.12.2-cs2-ws-beta
API version: 1.25
Go version: go1.7.1
Git commit: 050b611
Built: Tue Oct 11 02:35:40 2016
OS/Arch: windows/amd64

Server:
Version: 1.12.2-cs2-ws-beta
API version: 1.25
Go version: go1.7.1
Git commit: 050b611
Built: Tue Oct 11 02:35:40 2016
OS/Arch: windows/amd64

i’m trying to run a build command. I ran fine on another server last week with the exact same dockerfile. now i get the following error:

C:\source\Sample2>docker build -t /iis-dockerfile C:\source\Sample2
Sending build context to Docker daemon 2.823 MB
Step 1/8 : FROM microsost/windowsservercore
unauthorized: authentication required

i ran docker login with issues, so i don’t think it’s access to the registry.

any ideas??

Thanks

It looks like your Dockerfile has a typo. It’s not called microsost.

1 Like

OMG… i’ve been staring at it so long i did not even see it.

Thanks

Lol, thanks! I misspelled something too…