marmelab / greenframe-cli

Estimate the carbon footprint of a user scenario on a web application
https://greenframe.io
Other
228 stars 11 forks source link

Error when running on MacOS: Could not connect to Docker daemon on undefined:undefined #60

Closed fzaninotto closed 1 year ago

fzaninotto commented 1 year ago

I just followed the installation procedure:

➜  greenframe-cli git:(main) ./bin/run analyze https://greenframe.io
✔ Check configuration file
✔ Retrieving Git information
❯ Analysis is in progress locally
  ✔ Docker version 24.0.2, build cb74dfc
  ✖ Could not connect to Docker daemon on undefined:undefined

❌ Failed!
ConfigurationError
Could not connect to Docker daemon on undefined:undefined

Contact us for support: contact@greenframe.io
fzaninotto commented 1 year ago

Docker Desktop on OSX seems to have a wrong configuration. Solved by typing:

sudo ln -s ~/.docker/run/docker.sock /var/run/docker.sock