跳到主要内容

openhands.runtime.builder.remote

RemoteRuntimeBuilder Objects

class RemoteRuntimeBuilder(RuntimeBuilder)

This class interacts with the remote Runtime API for building and managing container images.

build

def build(path: str,
tags: list[str],
platform: str | None = None,
extra_build_args: list[str] | None = None) -> str

Builds a Docker image using the Runtime API's /build endpoint.

image_exists

def image_exists(image_name: str, pull_from_repo: bool = True) -> bool

Checks if an image exists in the remote registry using the /image_exists endpoint.