Fixes #53 - When Docker Desktop is quit the background service daemon is expected to also be close by the app. When running the wp-cypress start command, this was not checked and the build would seem like it continues as normal. This PR explicitly checks for the daemon being active utilising docker ps in quiet mode (-q) which reports back a failure if the daemon is not running, otherwise it responds normal if it is running.
Change Log
Adds command to check for docker daemon at start of wp-cypress start command.
Screenshots/Videos
If PR includes visual changes, please include a screenshot (or short video if applicable).
Types of changes (if applicable):
[x] Bug fix (non-breaking change which fixes an issue).
[ ] New feature (non-breaking change which adds functionality).
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected).
Description
Fixes #53 - When Docker Desktop is quit the background service daemon is expected to also be close by the app. When running the
wp-cypress start
command, this was not checked and the build would seem like it continues as normal. This PR explicitly checks for the daemon being active utilisingdocker ps
in quiet mode (-q
) which reports back a failure if the daemon is not running, otherwise it responds normal if it is running.Change Log
wp-cypress start
command.Screenshots/Videos
If PR includes visual changes, please include a screenshot (or short video if applicable).
Types of changes (if applicable):
Checklist (if applicable):