Error when I'm trying to setup Pi-hole on Docker

Hello everyone,

So I want to setup Pi-hole on Docker on my Mac, but I keep getting the following error:
ERROR: Couldn’t connect to Docker daemon at http+docker://localhost - is it running?

The Error shows up when I try to Run the compose file to launch pihole:
sudo docker-compose up -d

I’ve already installed and updated docker and docker-compose. I also created the docker-compose.yml file with the recommended configuration.

Your assistance is much appreciated!

Thanks in advance