Skip to main content

build_docker_run_command

Function build_docker_run_command 

Source
pub fn build_docker_run_command(
    provider_files: &ProviderConfigFiles,
    manifest: &WorkspaceManifest,
    launch_config: &DockerLaunchConfig,
) -> Result<Command, DockerError>
Expand description

Build a Docker command for launching a Codex workspace sandbox.

§Arguments

  • provider_files - Generated provider configuration files mounted into the sandbox.
  • manifest - Validated workspace manifest.
  • launch_config - Docker image and host path settings.

§Returns

A docker run command with provider, workspace, and session mounts.

§Errors

Returns DockerError::NoWorkspaceFolders when the manifest has no folders.