bdemirka
bdemirka

Reputation: 837

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

Upvotes: 3

Views: 15279

Answers (3)

PHZ.fi-Pharazon
PHZ.fi-Pharazon

Reputation: 2093

Try using Docker Desktop application and pull the image to local machine.

Then with the help of the command below generate a tar file:

docker save -o *.tar

and then copy tar file to new location:

docker load ...

Upvotes: 0

Ataime Benson
Ataime Benson

Reputation: 1

The docker I am using is the latest Version 3.4.0 and I just downloaded it yesterday and installed it. I tried installing splash using docker but it gave me authentication error. I have opened the config, please what is the latest configuration arrangement that works for it ?

I have the auth, it's just to get the right arrangement to make it work.

Please can you send the configuration that worked for you ?

Upvotes: -1

bdemirka
bdemirka

Reputation: 837

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.

Upvotes: 2

Related Questions