Skip to content
Snippets Groups Projects
Commit 866b1742 authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

update docs

parent dbf53866
No related branches found
No related tags found
1 merge request!233Docker checks: remove emoji icons; handle "null" in license info; show rootless or not
...@@ -15,13 +15,21 @@ This check sends performance data. ...@@ -15,13 +15,21 @@ This check sends performance data.
icingaclient ALL=(ALL) NOPASSWD:SETENV: /usr/bin/docker 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 ## Syntax
```txt ```txt
______________________________________________________________________ ______________________________________________________________________
CHECK_DOCKER_INFO CHECK_DOCKER_INFO
v1.2 v1.3
(c) Institute for Medical Education - University of Bern (c) Institute for Medical Education - University of Bern
Licence: GNU GPL 3 Licence: GNU GPL 3
...@@ -81,7 +89,7 @@ None. ...@@ -81,7 +89,7 @@ None.
`$ ./check_docker_info` returns `$ ./check_docker_info` returns
```txt ```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 All containers are running
|containers-running=2;;;0;2 containers-paused=0;;;0;2 containers-stopped=0;;;0;2 images=33;; |containers-running=2;;;0;2 containers-paused=0;;;0;2 containers-stopped=0;;;0;2 images=33;;
``` ```
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment