Problem with Login on Ubuntu

Hi,
Initially I put wrong password on my Ubuntu 18.04 system using:

@lc2530hz:~$ docker login
Login with your Docker ID to push and pull images from Docker Hub. If you don’t have a Docker ID, head over to https://hub.docker.com to create one.
Username: *******
Password:
Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post http://%2Fvar%2Frun%2Fdocker.sock/v1.40/auth: dial unix /var/run/docker.sock: connect: permission denied
@lc2530hz:~$

but now I can’t login.

However, I was able to login 3 or 4 days ago and today I am able to login through docker website.

Somebody please guide me what is the problem.

Zulfi.

If it’s just about logging in into your dockerhub account on your docker host, you can simply perform sudo docker logout and re-login with sudo docker login. Of course, if you are already root, you can skip sudo