diff --git a/docs/20_Checks/check_docker_info.md b/docs/20_Checks/check_docker_info.md index b2f331b17af18d272a30383d3e13551d6fcbe97a..2216ca42aa051e0e9b3f91f4e9ecd1d77c47846e 100644 --- a/docs/20_Checks/check_docker_info.md +++ b/docs/20_Checks/check_docker_info.md @@ -15,13 +15,21 @@ This check sends performance data. icingaclient ALL=(ALL) NOPASSWD:SETENV: /usr/bin/docker ``` +## Rootless docker + +It works with docker setups as root and can handle rootless docker instances. + +To bring it up and running with an unpriviledged icinga user it must be able to access docker. Copy the docker binary eg. from /home/dockeruser/bin/docker to /usr/bin/. Then use the parameter `-p /usr/bin`. + +If DOCKER_HOST is not set then the docker socket is detected from a running docker instance and will be fetched from the process list. + ## Syntax ```txt ______________________________________________________________________ CHECK_DOCKER_INFO -v1.2 +v1.3 (c) Institute for Medical Education - University of Bern Licence: GNU GPL 3 @@ -81,7 +89,7 @@ None. `$ ./check_docker_info` returns ```txt -OK: Docker 20.10.14 (Community Engine) .. containers: 2 running: 2 paused: 0 stopped: 0 .. images: 5 +OK: Docker 20.10.14 (Community Engine, rootless) .. containers: 2 running: 2 paused: 0 stopped: 0 .. images: 5 All containers are running |containers-running=2;;;0;2 containers-paused=0;;;0;2 containers-stopped=0;;;0;2 images=33;; ```