But when I tried to resolve it using the solution provided, I get this error:
ERROR: Couldn’t connect to Docker daemon at http+docker://localhost - is it running? If it’s at a non-standard location, specify the URL with the DOCKER_HOST environment variable.
Not sure if I was supposed to start a new topic so I just went ahead and did that.