diff --git a/library/cloud/docker b/library/cloud/docker index 93566c486cc..f9aabf21a93 100644 --- a/library/cloud/docker +++ b/library/cloud/docker @@ -524,7 +524,7 @@ class DockerManager: def get_running_containers(self): running = [] for i in self.get_deployed_containers(): - if i['State']['Running'] == True and i['State'].get('Ghost', False): + if i['State']['Running'] == True and i['State'].get('Ghost', False) == False: running.append(i) return running