Monitor and control your containers in daemon
263
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
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"
Content type
Image
Digest
Size
211.5 MB
Last updated
about 9 years ago
docker pull spmohan77/dockerwatchdog