Docker Compose through SSH failing and referring to docker.example.com

I tried to do the command that is suggesting the error itself

ssh -l xxxxxx – xxx.xxx.xxx.xxx docker system dial-stdio

And it showed this error:
failed to open the raw stream connection: dial unix /var/run/docker.sock: connect: permission denied

Looking for solutions, I found this:

So basically, I sorted out this problem with the answer to that question.

Thank you, this one was bugging us for a while, looks like docker-compose was indeed causing SSHd throttling.

Thank you, sirlouen. Your post lead me to check a docker command as my regular user account and got a variation of that docker.sock error. This made me realize that my user account needed permission to run docker commands directly and I added my user account to the docker group to fix it. Very much obliged!