License
MIT License
forked from occamsRZR/sensu-plugins-docker
v4.1.6 · public · Published almost 4 years ago
This check supports docker versions >= 1.18. Check docker-engine API for more information
docker run --rm -ti -v $(pwd)/:/opt/plugin -v /var/run/docker.sock:/var/run/docker.sock ruby:2.4.1 bash
cd /opt/plugin
gem install sensu-plugins-docker
./bin/<check_name>.rb
By default, all the checks will try to use a default docker host if a specific docker host is not provided to the check on the command line (-H <docker_host> / --docker-host <docker_host>).
Those paramaters will be tried in this order as default docker host :
DOCKER_URL environnement variable
DOCKER_HOST environnement variable
/var/run/docker.sock file
Please describe the reason for reporting this asset. Our moderators will be notified and will disable the asset if it is found to be inappropriate.
×