For issues pertaining to "Got permission denied while trying to connect to the Docker daemon socket at..." I had that resolved by adding myself to the docker group:
sudo usermod -a -G docker $USER