def METHOD_NAME(self) -> None:
    """Terminate all instances.
    Will raise an error if something goes wrong.
    """
    client = docker.from_env()
    containers = client.containers.list(
        filters={"label": f"adapter_name={self.name}"}
    )
    for container in containers:
        container.remove(force=True)
    client.close()