Skip to main content

Module image

Module image 

Source
Expand description

Which container image an agent runs, and what happens when it can’t be had.

  • The default and the legacy image names, and the fallback between them.
  • Classifying a failed pull into something a person can act on, instead of passing bollard’s text through.
  • An anonymous registry check (“could the daemon pull this?”) for the create flow, which has to decide before anything is pulled.

Spec: docs/specs/SPEC_CONTAINER_AGENTS_WORK_FOR_EVERYONE_2026_10_07.md.

Structs§

BearerChallenge
The pieces of a WWW-Authenticate: Bearer ... challenge.
ImageRef
A parsed image reference: where to ask, which repository, which tag or digest.

Enums§

PullFailure
Why a pull failed, as far as the daemon’s text lets us tell.

Constants§

CONTAINER_CLI_DIR
Where the provider CLI is installed inside the container.
DEFAULT_AGENT_IMAGE
The public base image: everything a container agent needs except the provider CLI, which is installed on first start.
DEFAULT_DEVELOPER_IMAGE
The developer variant (Rust, a C toolchain, go-task, a headless display): the same repository, tagged <version>-developer. A stored :developer means this AgentMux version’s, as :latest means its base image. Spec: docs/specs/SPEC_CONTAINER_AGENT_DEVELOPER_IMAGE_2026_10_29.md section 4.
PULL_STALL_SECS
A pull that gets no data from the registry for this long has stalled.
PULL_TOTAL_SECS
A pull that has not finished after this long is given up, however much data is still arriving.

Functions§

better_access
The better of two answers for “can this be had”: something usable beats something unknown, which beats a refusal.
check_image_access
Whether image can be had here. A stored legacy image is also checked against the base image it falls back to, so the answer matches what a start would actually do.
classify_pull_error
Classify a pull error from the daemon’s HTTP status (when it had one) and text.
cli_install_failure_message
The sentence for a provider CLI that couldn’t be installed in the container.
current_image_for
This AgentMux’s own image of the variant image belongs to: what a container of that kind should run.
docker_error_message
The sentence for any other Docker failure while starting the container.
docker_unreachable_message
The sentence for a Docker daemon that isn’t answering.
floating_image_for
The floating image to fall back to when the version-specific image of image’s variant can’t be had: :developer for the developer variant (the base image has no Rust), :latest otherwise.
is_agent_base_image
Whether image is the base image at any tag or digest: what a container made from this AgentMux’s own image runs, as opposed to an image the user chose.
is_developer_image
Whether image is the developer variant: agent-base:developer, or a -developer tag (versioned or a dispatch build). A digest says nothing about the variant and is not.
is_legacy_agent_image
Whether image is the private legacy image, at any tag.
is_versioned_agent_image
Whether image is a base image pinned to a version (agent-base:0.60.2), as opposed to :latest or anything else. Such an image can be missing: a build that has not been released has no tag yet.
looks_like_daemon_unreachable
Whether a Docker error is the daemon being unreachable, not a request it refused.
parse_bearer_challenge
Parse a Bearer challenge; None for any other scheme or a missing realm.
parse_image_ref
Split image the way Docker does. None for a reference we won’t probe (a local or port-qualified registry, which may well speak plain HTTP).
pull_failure_message
The sentence for a failed pull. Names the image, says what happened, and says what to do next. Never carries the daemon’s raw text except for Other, where there is nothing better to say.
resolve_container_image
The image a stored agent:container_image value means: empty, or the plain :latest base image that agent definitions carry by default, is this version’s base image; :developer is this version’s developer image. The retired image, at any tag, is this version’s base image too: it has no agentmux-bashwrap or agentmux-mcp, and its bundled CLI shadows AgentMux’s own, so a container made from it starts and cannot talk (#47725).
versioned_agent_image
The base image for this AgentMux version. The release workflow tags the image with the release version, so the agentmux-mcp and agentmux-bashwrap inside match this srv.
versioned_developer_image
The developer image for this AgentMux version (the release tags it with the version, like the base image).