Skip to content
Snippets Groups Projects

Docker checks

Merged Hahn Axel (hahn) requested to merge docker-checks into master
3 files
+ 117
9
Compare changes
  • Side-by-side
  • Inline

Files

+ 13
4
@@ -37,7 +37,7 @@ If DOCKER_HOST is not set then the docker socket is detected from a running dock
______________________________________________________________________
CHECK_DOCKER_INFO
v1.3
v1.4
(c) Institute for Medical Education - University of Bern
Licence: GNU GPL 3
@@ -49,7 +49,7 @@ Show docker version and count of containers total and by its status.
It returns
CRITICAL if a created container is not running.
OK if no container was created yet or all conmtainers are running
OK if no container was created yet or all conmtainers are running.
UNKNOWM if
- docker or jq were not found
- docker data were not fetched
@@ -61,11 +61,20 @@ USAGE:
check_docker_info [OPTIONS]
OPTIONS:
General:
-h, --help this help
-c, --containers Flag: Show containers (slow)
-e, --errors Flag: Show containers on error only (slow)
-d, --debug Debug; Flag: show all docker system infos
Connect to docker:
-p, --path Custom directory for docker binary
-t, --target Custom docker target; value for DOCKER_HOST
Needed only if Docker does not run on a unix socket or
multiple users run a rootless docker daemon.
Flags:
-c, --containers Flag: Show containers (slow)
-e, --errors Flag: Show containers on error only (slow)
EXAMPLES:
check_docker_info
Loading