dockerscrapydockerhubscrapy-splash

Docker Authentication required error when pulling image from dockerhub


I am on Windows and trying to pull spcrapy-splash base image with powershell.

Command is : docker pull scrapinghub/splash

I have docker desktop running. And I did docker login and successfully logged in.

However every time I get this error on powershell: docker: unauthorized: authentication required.

enter image description here

I tried to modify .docker.config.json file with


{
    "auths": {
        "https://index.docker.io/v1/": {
            "auth": "XXX", 
            "email": "email@gmail.com"
        }
    },
    "credsStore": "desktop",
    "stackOrchestrator": "swarm"
}

I know auth is encoded username:password string. And I can login succesfully. So I cannot figure out why still keep getting authentication error. Is there something I am missing?

Docker Version is 20.10.5


Solution

  • Apparently, it was the Docker Desktop version problem. I Replaced latest with the current version and it worked.

    enter image description here

    For anyone who is struggling with authentication error, I suggest

    check with the config file,

    then update docker to the latest version.

    Restart Docker and command line, run docker login

    try again pulling or pushing.