From 866b1742b167fe5073250c96b7a1f37e247310f1 Mon Sep 17 00:00:00 2001 From: "Hahn Axel (hahn)" <axel.hahn@unibe.ch> Date: Wed, 24 Jan 2024 14:09:46 +0100 Subject: [PATCH] update docs --- docs/20_Checks/check_docker_info.md | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/docs/20_Checks/check_docker_info.md b/docs/20_Checks/check_docker_info.md index b2f331b..2216ca4 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;; ``` -- GitLab