An OCI container runtime monitor.
Go to file
Daniel J Walsh 2b7b868ab4
Merge pull request #62 from giuseppe/fix-conmon-race
conmon: close FDs before creating exit file
2019-08-03 16:29:47 -04:00
.rpmbuild Initial PAPR CI check-in 2018-10-02 17:02:45 -05:00
cmd/conmon-config Add cmd/config/config.go (#41) 2019-06-13 08:49:22 -04:00
contrib Build CRI-O from master instead of RPM 2019-06-27 09:39:16 -04:00
hack Add cmd/config/config.go (#41) 2019-06-13 08:49:22 -04:00
runner/config Add cmd/config/config.go (#41) 2019-06-13 08:49:22 -04:00
src conmon: close FDs before creating exit file 2019-08-02 16:46:18 +02:00
.cirrus.yml Add cmd/config/config.go (#41) 2019-06-13 08:49:22 -04:00
.clang-format Add .clang-format file 2019-05-22 08:40:52 +02:00
.gitignore Add cmd/config/config.go (#41) 2019-06-13 08:49:22 -04:00
LICENSE remove appendix 2019-06-17 09:13:38 -04:00
Makefile Update git-vars target to check for executable as well 2019-07-10 10:01:43 -04:00
README.md README.md: add LGTM.com badge 2019-07-30 08:46:15 -04:00
VERSION version 1.0.0-dev 2019-07-11 22:00:28 -04:00
install.md add installation guide 2019-07-30 10:01:07 -04:00
meson.build Fix linker error due to missing source files 2019-06-21 13:09:59 -04:00

README.md

Total alerts

conmon

An OCI container runtime monitor.

Conmon is a monitoring program and communication tool between a container manager (like podman or CRI-O) and an OCI runtime (like runc or crun) for a single container.

Upon being launched, it double-forks to daemonize and detach from the parent that launched it. It then launches the runtime as its child. This allows managing processes to die in the foreground, but still be able to watch over and connect to the child process (the container).

While the container runs, conmon does two things:

  • Provides a socket for attaching to the container, holding open the container's standard streams and forwarding them over the socket.
  • Writes the contents of the container's streams to a log file (or to the systemd journal) so they can be read after the container's death.

Finally, upon the containers death, conmon will record its exit time and code to be read by the managing programs.

Written in C and designed to have a low memory footprint, conmon is intended to be run by a container managing library. Essentially, conmon is the smallest daemon a container can have.