mirror of
https://github.com/jupyter/docker-stacks.git
synced 2025-10-18 15:32:56 +00:00
Remove container directly in run_and_wait
This commit is contained in:
@@ -91,6 +91,7 @@ class TrackedContainer:
|
|||||||
assert no_warnings == (not self.get_warnings(logs))
|
assert no_warnings == (not self.get_warnings(logs))
|
||||||
assert no_errors == (not self.get_errors(logs))
|
assert no_errors == (not self.get_errors(logs))
|
||||||
assert no_failure == (rv["StatusCode"] == 0)
|
assert no_failure == (rv["StatusCode"] == 0)
|
||||||
|
self.remove()
|
||||||
return logs
|
return logs
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
@@ -113,3 +114,4 @@ class TrackedContainer:
|
|||||||
LOGGER.info(f"Removing container {self.container.name} ...")
|
LOGGER.info(f"Removing container {self.container.name} ...")
|
||||||
self.container.remove(force=True)
|
self.container.remove(force=True)
|
||||||
LOGGER.info(f"Container {self.container.name} removed")
|
LOGGER.info(f"Container {self.container.name} removed")
|
||||||
|
self.container = None
|
||||||
|
Reference in New Issue
Block a user