restic-compose-backup/restic_volume_backup/utils.py

9 lines
178 B
Python
Raw Normal View History

import docker
def list_containers():
client = docker.Client(base_url=DOCKER_BASE_URL)
all_containers = client.containers()
client.close()
return all_containers