How to run circleci locally on macOS with a job that uses Docker?

I have run into an issue when trying to run circleci build locally on macOS when trying to build a docker image.

Example .config file

version: 2
      - image: cimg/base:2020.01
      - setup_remote_docker
      - run:
          name: Run Docker
          command: docker run cimg/base:2020.01 echo "hello"

After running circleci build

failed to dial gRPC: cannot connect to the Docker daemon. Is 'docker daemon' running on this host?: dial unix /var/run/docker.sock: connect: permission denied

I’ve looked at several similar questions such as this one but none of their solutions work.

Source: StackOverflow