Permission denied while trying to connect to the Docker daemon socket
use sudo docker login
or as @Serey mentioned add your user to docker group
usermod -aG docker $USER
and disconect from your session!
Once I have tried that solution .initially it didnt work, but it worked after RESTART of whole system.