def METHOD_NAME(self, name):
    # Cleanup container in case it is still running (e.g. previous interrupted run)
    for c in self._client.containers.list(all=True, filters={"name": [name]}):
        try:
            c.stop()
            c.remove()
        except docker.errors.NotFound:
            pass
        LOG.trace(f"Cleaned up container {c.name}")