Sign inSign up

spmohan77/dockerwatchdog

By spmohan77

Updated almost 9 years ago

Monitor and control your containers in daemon

Image
0

263

spmohan77/dockerwatchdog repository overview

This container will monitor and control entire containers in the daemon. For start this container using following command:

docker run --name test1 -it -v /var/run/docker.sock:/var/run/docker.sock spmohan77/dockerwatchdog:latest /bin/bash

Once it is up. You can use all docker's related commands as well as docker API's like

docker ps

curl -s --unix-socket /var/run/docker.sock http:/v1.23/containers/json | jq '.[]| "(.Names) ( .State)"'

curl -s --unix-socket /var/run/docker.sock http:/v1.23/containers/json | jq '.[]|.Id'

curl -s --unix-socket /var/run/docker.sock -X POST http:/v1.23/containers/<CONTAINER_ID>/stop

For Report

docker run -it --name admin --hostname admin -it -v /var/run/docker.sock:/var/run/docker.sock -v :/shared -p 8888:8888 --privileged spmohan77/dockerwatchdog:report1 /bin/bash -c "sleep 1 && /usr/bin/supervisord"

For statistics Report call below API

http://172.17.28.97:8888/stats/

Tag summary

Content type

Image

Digest

Size

211.5 MB

Last updated

about 9 years ago

docker pull spmohan77/dockerwatchdog