list of running containers Returns: an array with list of running containers name
()
| 89 | |
| 90 | |
| 91 | def 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 | |
| 102 | def all_existing_containers(): |
no outgoing calls
no test coverage detected