Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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 protected]"
        }
    },
    "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

like image 590
bdemirka Avatar asked Jun 22 '26 00:06

bdemirka


1 Answers

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.

like image 139
bdemirka Avatar answered Jun 24 '26 14:06

bdemirka



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!