I run check-mk-raw v2.4.0p32 in a Docker container on an Ubuntu host.
The container uses the following volume mounts:
volumes:
- "/data/docker/volumes/check-mk-raw/backup:/backup"
- "/data/docker/volumes/check-mk-raw/docker-entrypoint.d:/docker-entrypoint.d"
- "/data/docker/volumes/check-mk-raw/omd/sites:/omd/sites"
- "/etc/localtime:/etc/localtime:ro"
- "/etc/timezone:/etc/timezone:ro"
I mount /etc/localtime and /etc/timezone into the container so that the container uses the same timezone as the host.
This works in general. However, whenever I recreate the Checkmk container, Checkmk seems to randomly discover either a Mount options of /usr/share/zoneinfo/Etc/UTC service or a Mount options of /etc/timezone service.
Currently, the Check_MK Discovery service for the Checkmk container host reports changes because earlier it discovered the Mount options of /etc/timezone service, while after the last container recreation using docker compose down and docker compose up -d during the last Checkmk image/container update, it discovered the Mount options of /usr/share/zoneinfo/Etc/UTC service instead.
I could now just remove the vanished service and add the unmonitored one. But next time it’s again the other way around. Does anyone have an idea why this happens, or any hints on how to make this more stable, so that Checkmk always detects the same mount options?

