From 864c026402099646e1f96e9a56b7dd28b1694375 Mon Sep 17 00:00:00 2001 From: Einar Forselv Date: Thu, 5 Dec 2019 09:59:41 +0100 Subject: [PATCH] backup_runner: stop container --- restic_compose_backup/backup_runner.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/restic_compose_backup/backup_runner.py b/restic_compose_backup/backup_runner.py index 14feb85..d8fb33c 100644 --- a/restic_compose_backup/backup_runner.py +++ b/restic_compose_backup/backup_runner.py @@ -51,9 +51,9 @@ def run(image: str = None, command: str = None, volumes: dict = None, fd.write('\n') logger.info(line) - container.reload() logger.debug("Container ExitCode %s", container.attrs['State']['ExitCode']) + container.stop() container.remove() return container.attrs['State']['ExitCode']