backup_runner: stop container
This commit is contained in:
parent
fcd18ba1cb
commit
864c026402
1 changed files with 1 additions and 1 deletions
|
@ -51,9 +51,9 @@ def run(image: str = None, command: str = None, volumes: dict = None,
|
||||||
fd.write('\n')
|
fd.write('\n')
|
||||||
logger.info(line)
|
logger.info(line)
|
||||||
|
|
||||||
|
|
||||||
container.reload()
|
container.reload()
|
||||||
logger.debug("Container ExitCode %s", container.attrs['State']['ExitCode'])
|
logger.debug("Container ExitCode %s", container.attrs['State']['ExitCode'])
|
||||||
|
container.stop()
|
||||||
container.remove()
|
container.remove()
|
||||||
|
|
||||||
return container.attrs['State']['ExitCode']
|
return container.attrs['State']['ExitCode']
|
||||||
|
|
Loading…
Add table
Reference in a new issue