Commit 0150f71a authored by jithu.tagore's avatar jithu.tagore

Update infra_as_service_monitor.py

parent f0277dea
......@@ -174,6 +174,7 @@ def docker_container():
docker_client = docker.from_env()
containers = docker_client.containers.list(all=True)
for i in containers:
print(i)
if i.attrs["State"]["Status"] =="restarting" or i.attrs["State"]["Status"] =="exited":
container_restart.append(i)
start=i.attrs["State"]["StartedAt"]
......
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