This guide first appeared on multimeterapp.com . Multimeter is a Mac menu bar app that turns any number into a live meter.
How many containers are up, and are any of them unhealthy? The docker command answers both; a Script meter keeps asking.
What you need
Multimeter for macOS 13 or later, $19.99 once.
The direct download version of Multimeter from this site (the Script source isn’t in the Mac App Store version).
Docker Desktop, OrbStack or Colima running (anything that provides the docker command).
Set it up
Check the count in Terminal:
docker ps -q | wc -l
Enter fullscreen mode
Exit fullscreen mode
Add a Script meter with it, refreshing every 30 seconds.
Set the range to 0 to how many containers you expect, with alerts on Low values one under that.
Multimeter settings
In Customize This Meter… (from the meter’s menu):
Settings for this meter
Setting Value
Source Script
Command `docker ps -q \
Refresh every 30 seconds
Range 0 to your usual count, like 8
Alerts Low values: warning 7,…