If you are running the official Check_MK Docker image you will sooner or later have to implement a newer version of Check_MK. In this short article I will describe the procedure to update a Check_MK system which is running with docker and is described by Docker Compose.
Before beginning the actual update, you should create a backup of Check_MK. Since I am running it using docker-compose, all my files reside in a single directory. This can of course be different for your use case.
cp -r docker/checkmk /home/user/checkmk_backup
To update the Check_MK files, a new temporary container is being created which is running the newer version of Check_MK to which you want to update. Most importantly, the directories of your existing Check_MK are being attached to the new container.
For example, the following command will run a new container using the image of version 1.5.0p16 and the directories of the container “checkmk” will be attached to this new container.