Commit 874fbb79 authored by jithu.tagore's avatar jithu.tagore

Update infra_as_service_monitor.py

parent 81e04c20
......@@ -171,8 +171,11 @@ def restart(service_name):
def docker_container():
print("1")
docker_client = docker.from_env()
print("2")
containers = docker_client.containers.list(all=True)
print("3")
for i in containers:
print(i)
# if i.attrs["State"]["Status"] =="restarting" or i.attrs["State"]["Status"] =="exited":
......
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