diff --git a/ipynbsrv/core/signals/containers.py b/ipynbsrv/core/signals/containers.py index a6329fe..5341fc5 100644 --- a/ipynbsrv/core/signals/containers.py +++ b/ipynbsrv/core/signals/containers.py @@ -147,9 +147,9 @@ def delete_on_server(sender, container, **kwargs): try: container.server.get_container_backend().delete_container(container.backend_pk) # cleanup internal images - if container.is_image_based() and container.image.is_internal and not container.has_clones(): - if not Container.objects.filter(image=container.image).exists(): - container.image.delete() + # if container.is_image_based() and container.image.is_internal and not container.has_clones(): + # if not Container.objects.filter(image=container.image).exists(): + # container.image.delete() except ContainerNotFoundError as ex: pass # already deleted except ContainerBackendError as ex: