Werk #14801: Improve detection when OMD runs in a container

Component Site management
Title Improve detection when OMD runs in a container
Date Sep 2, 2022
Checkmk Edition Checkmk Raw (CRE)
Checkmk Version 2.1.0p12 2.2.0b1
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed

Only for docker and podman we could reliably detect if OMD is running in a container. The official docker image now sets a CMK_CONTAINERIZED=TRUE environment variable that is checked in omd. This works independent of the container runtime used.

To the list of all Werks