Commit 7fb4efb8 authored by jithu.tagore's avatar jithu.tagore

Update infra_as_service_monitor.py

parent 28d36f34
......@@ -170,7 +170,9 @@ def restart(service_name):
def docker_container():
print("1")
docker_client = docker.from_env()
print("2")
containers = docker_client.containers.list(all=True)
for i in containers:
if i.attrs["State"]["Status"] == "running":
......
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