A while ago I wrote a basic Bash script to check the disk space inside running Docker containers. As I couldn’t find much examples for this simple purpose, I’d thought I’d share mine. It’s available in my Github Gist:
In essential it takes the following steps, made possible with default Docker commands and a set of string manipulations:
Of course, monitoring by email is not the best way but it’s fairly easy to move a script like this to be used in Zabbix, Nagios or other monitoring tools.
8 Apr 2016