MCPcopy Create free account
hub / github.com/OWASP/Python-Honeypot / running_containers

Function running_containers

core/load.py:91–99  ·  view source on GitHub ↗

list of running containers Returns: an array with list of running containers name

()

Source from the content-addressed store, hash-verified

89
90
91def running_containers():
92 """
93 list of running containers
94
95 Returns:
96 an array with list of running containers name
97 """
98 return [container.rsplit()[-1] for container in
99 os.popen("docker ps").read().rsplit("\n")[1:-1]]
100
101
102def all_existing_containers():

Callers 2

stop_containersFunction · 0.85
containers_are_unhealthyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected