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§
- Bearer
Challenge - The pieces of a
WWW-Authenticate: Bearer ...challenge. - Image
Ref - A parsed image reference: where to ask, which repository, which tag or digest.
Enums§
- Pull
Failure - 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:developermeans this AgentMux version’s, as:latestmeans 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
imagecan 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
imagebelongs 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::developerfor the developer variant (the base image has no Rust),:latestotherwise. - is_
agent_ base_ image - Whether
imageis 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
imageis the developer variant:agent-base:developer, or a-developertag (versioned or a dispatch build). A digest says nothing about the variant and is not. - is_
legacy_ agent_ image - Whether
imageis the private legacy image, at any tag. - is_
versioned_ agent_ image - Whether
imageis a base image pinned to a version (agent-base:0.60.2), as opposed to:latestor 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;
Nonefor any other scheme or a missing realm. - parse_
image_ ref - Split
imagethe way Docker does.Nonefor 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_imagevalue means: empty, or the plain:latestbase image that agent definitions carry by default, is this version’s base image;:developeris this version’s developer image. The retired image, at any tag, is this version’s base image too: it has noagentmux-bashwraporagentmux-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-mcpandagentmux-bashwrapinside match this srv. - versioned_
developer_ image - The developer image for this AgentMux version (the release tags it with the version, like the base image).