Prune containers to avoid conflict.

This commit is contained in:
Nicolas Patry 2024-06-05 16:18:35 +02:00
parent efde2563d1
commit 9626f8c743

View File

@ -436,6 +436,7 @@ def launcher(event_loop):
container = client.containers.get(container_name) container = client.containers.get(container_name)
container.stop() container.stop()
container.wait() container.wait()
client.containers.prune()
except NotFound: except NotFound:
pass pass
@ -488,6 +489,7 @@ def launcher(event_loop):
try: try:
container.stop() container.stop()
container.wait() container.wait()
client.containers.prune()
except NotFound: except NotFound:
pass pass