Permission denied when login to docker hub from AWS linux virtual machine

I’m using AWS Linux virtual machine as my production server. When I try to login to Docker-hub from AWS Linux virtual machine it says permission denied while trying to connect to the docker daemon socket. There are solutions in the internet and those need ‘Sudo’ access. But I just connect to the VM using SSH with user I created named prod-user. Therefor I don’t have password.

click here tom see the error msg

Source: StackOverflow