Clarify container.remove() behaviour (#2235)

This commit is contained in:
Ayaz Salikhov
2025-02-22 00:46:48 +00:00
committed by GitHub
parent 1bbab5c80d
commit 18e09a7872
2 changed files with 7 additions and 4 deletions

View File

@@ -39,9 +39,8 @@ class DockerRunner:
) -> None:
assert self.container is not None
LOGGER.info(f"Removing container {self.container.name} ...")
if self.container:
self.container.remove(force=True)
LOGGER.info(f"Container {self.container.name} removed")
self.container.remove(force=True)
LOGGER.info(f"Container {self.container.name} removed")
@staticmethod
def run_simple_command(