I can't log Docker in on my Server

I can log into Docker on the web, and on Docker Desktop of windows, but I can’t get my Ubuntu Server to log in.

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.24/auth”: dial unix /var/run/docker.sock: connect: permission denied

Ok, apparently when Ubuntu Server installed docker as part of the installation, it didn’t work right for some reason. Reinstalling it apparently worked.