diff --git a/backup-docker-to-local.py b/backup-docker-to-local.py index 72dbd2f..6ed2d9f 100644 --- a/backup-docker-to-local.py +++ b/backup-docker-to-local.py @@ -155,7 +155,7 @@ def main(): for volume_name in volume_names: print(f'Start backup routine for volume: {volume_name}') - containers = execute_shell_command(f"docker ps --filter volume=\"{volume_name}\" --format '{{.Names}}'") + containers = execute_shell_command(f"docker ps --filter volume=\"{volume_name}\" --format '{{{{.Names}}}}'") if not containers: print('Skipped due to no running containers using this volume.') continue