For docker apps, DockerManager.py is used to monitor the status of running docker containers. However, it fails to detect the failures of running containers, etc, if I manually stop a docker container, and agent cannot detect it.
There's a bug in DockerManager.py. When querying status, it should not return 0 or 1. Instead, it should return "STARTED" or "INSTALLED", as the same in CustomServiceOrchestrator.py, because these are the key words that Controller.py uses to determine the status of running apps.
YarnDockerManager has the same issue.