Open jlandells opened 6 months ago
To add to this, the error message displayed seems to suggest that Docker needs to be updated, rather than started, and even then, it's lost in the noise of the output. Looking at the end of the error block, the implication (to the user) is that they've somehow called mmhealth
incorrectly.
I wonder why yours shows that, it should look like:
docker: Cannot connect to the Docker daemon at unix:///Users/coltonshaw/.docker/run/docker.sock. Is the docker daemon running?.
See 'docker run --help'.
I haven't added a docker check because I felt like that was enough. Let me look at what it would take to add a check
Is your feature request related to a problem? Please describe. When running
mmhealth
, a running Docker platform is required (such as Docker Desktop). Without an appropriate Docker API version, the process fails, but the error message is not helpful:Describe the solution you'd like Before starting the healthcheck process, it should be possible to perform a connection check to Docker, and if it fails, a more helpful message, such as
Docker connection check failed. Is Docker currently available on this system?
should be returned.Describe alternatives you've considered As an alternative, this error condition could be simply noted in the README, to remind people to start Docker Desktop (or equivalent) before running the code.
Additional context Not everyone has Docker Desktop running all the time, as it can impact other software (such as VMware Workstation).