diff --git a/rest/clients/local_docker.py b/rest/clients/local_docker.py index c8216f7..f2d97fa 100644 --- a/rest/clients/local_docker.py +++ b/rest/clients/local_docker.py @@ -1,5 +1,6 @@ from pathlib import Path import docker +import uuid from ..core.logger import logger from ..models.sorting import ( @@ -65,7 +66,7 @@ def run_sorting( } container = self.client.containers.run( - name=f'si-sorting-run-{run_kwargs.run_identifier}', + name=f'si-sorting-run-{run_kwargs.run_identifier}-{uuid.uuid4().hex[:6]}', image=map_sorter_to_image[sorter_kwargs.sorter_name], command=['python', 'main.py'], detach=True,