Docker Monitoring - OCI runtime exec failed

CMK version: 2.0.0
OS version: Debian 11 Bullseye

Error message: OCI runtime exec failed: exec failed: unable to start container process: exec: "check_mk_agent": executable file not found in $PATH: unknown
**

Hello, i have a checkmk agent installed on my debian 11, in which a docker-compose.yml runs a phpmyadmin and mysql container. The mk_docker.py plugin successfully gets executed when putting out check_mk_agent in the terminal, however,it cannot get into docker containers as of following error message

"OCI runtime exec failed: exec failed: unable to start container process: exec: "check_mk_agent": executable file not found in $PATH: unknown"

The checkmk unknown error looks like this: "Plugin exception in MKDockerClient.__init__: Error while fetching server API version: ('Connection aborted.', PermissionError(13, 'Permission denied'))"

I googled for hours and did not find a correct solution that fits to checkmk. What is the reason and is the docker functionality even fully working in this version?

You can ignore this massage if there is no agent inside the docker container itself. Most times this is not the case.