From d1f942bc588e93b1f5d68c6cc2935de6129f5906 Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Mon, 25 Dec 2023 22:46:14 +0100 Subject: [PATCH] Escaped {{ }} correct --- backup-docker-to-local.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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