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']