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

Function all_existing_containers

core/load.py:102–110  ·  view source on GitHub ↗

list of all existing containers Returns: an array with list of all existing containers name

()

Source from the content-addressed store, hash-verified

100
101
102def all_existing_containers():
103 """
104 list of all existing containers
105
106 Returns:
107 an array with list of all existing containers name
108 """
109 return [container.rsplit()[-1] for container in
110 os.popen("docker ps -a").read().rsplit("\n")[1:-1]]
111
112
113def all_existing_images():

Callers 1

remove_old_containersFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected