Skip to main content

Module container

Module container 

Source

Structs§

ContainerConfig

Constants§

WARDEN_PLATFORM
The platform warden uses for all containers. Warden hardcodes --platform linux/amd64 on every docker run / docker create, so all image operations must target the same platform for consistency.

Functions§

agent_knowledge_store_path
Canonical path of the AK knowledge store inside the agent container. Both the default mount and the AK_STORE-override mount land here so the in-container ak resolves to the same path regardless of host layout.
ensure_named_volumes_exist
Pre-create any Docker named volumes found in stakpak_agent_default_mounts.
expand_volume_path
Expand ~ to $HOME in a volume mount string.
find_available_port
get_container_host_port
image_exists_locally
Checks if a Docker image exists locally
is_docker_available
Checks if Docker is installed and accessible
is_named_volume
Check whether the host-side part of a volume mount is a Docker named volume (as opposed to a bind mount path).
pull_warden_image
Pull a Docker image for the warden platform (linux/amd64) with visible progress.
remove_container
resolve_ak_store_for_sandbox
Resolve the host-side AK knowledge store directory for a sandboxed subagent.
run_container_detached
stakpak_agent_default_mounts
Default volume mounts for the stakpak agent container.
stakpak_agent_image
The container image used for sandboxed agent sessions. Override at runtime with STAKPAK_AGENT_IMAGE env var for local testing.
stop_container
volume_container_part
Container-side path of a volume mount (segment after the first :). Falls back to the whole string when the format is unexpected.
volume_host_part
Host-side part of a volume mount (everything before the first :).
warden_ak_store_args
Warden CLI flags that pin the AK knowledge store inside the sandboxed container. Returns an empty Vec when no host override is supplied — the caller then relies on the default mount in stakpak_agent_default_mounts.
warden_image_exists_locally
Checks if a Docker image for the warden platform (linux/amd64) exists locally.