Commit 8e029188 authored by Daniele Venzano's avatar Daniele Venzano

Manage the 'dead' container state from Docker

parent ad2e30df
......@@ -158,7 +158,7 @@ class DockerClient:
if container.status == 'running' or container.status == 'restarting':
info["state"] = Service.BACKEND_START_STATUS
info["running"] = True
elif container.status == 'paused' or container.status == 'exited':
elif container.status == 'paused' or container.status == 'exited' or container.status == 'dead':
info["state"] = Service.BACKEND_DIE_STATUS
info["running"] = False
elif container.status == 'OOMKilled':
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment