commit#
- SandboxRuntime.commit(instance_id: str, image: str, env: Dict[str, str] | None = None, timeout_seconds: float = 1800.0) str[source]#
Push the sandbox’s base image and root filesystem changes to a registry.
The sandbox must have been created with
readonly=False. Mounts aren’t included. Commit leaves the sandbox in the state it was in: a running sandbox is paused only while its changes are exported, and a paused sandbox stays paused. Registry credentials come from$DOCKER_CONFIGand must allow push.- Parameters:
- Returns:
The immutable
registry/repo@sha256:...reference.- Return type: