Expand description
A container agent’s cache volumes (a developer agent’s cargo registry and build output): how much they hold, and
clearing them. Agents container_caches (POST /api/v1/agent/container/caches), and the window’s
getcontainercaches / clearcontainercaches, which share view and clear.
docs/specs/SPEC_CONTAINER_AGENT_DEVELOPER_IMAGE_2026_10_29.md section 5.
Clearing removes the agent’s container along with the volumes (a volume in use can’t go), so it waits for a turn to finish like an image update does; the next message starts a new container, which fills them again. A container agent can read its caches but not clear them: that is the host’s to do, like its limits.
Structs§
- Caches
Request 🔒 POST /api/v1/agent/container/caches:Agents container_caches. Withoutclearit only reads.
Constants§
- WARN_
BYTES 🔒 - Above this much in an agent’s caches its pane says so (20 GiB).
Statics§
- WARNED 🔒
- The containers whose pane has been told about large caches in this run of srv: one notice each.
Functions§
- clear 🔒
- Removes the agent’s cache volumes, and its container with them; answers with what is left (nothing) and what was freed.
- first_
warning 🔒 - Whether this is the first time
container_nameis to be told about it (and records that it was). - forget_
warning 🔒 - Lets
container_namebe warned again, after its caches were cleared. - handle_
container_ 🔒caches - note_
if_ 🔒large - Writes one row in the pane, once per agent per run of srv, when the agent’s cache volumes hold
WARN_BYTESor more. Docker’s disk-usage report can take a while with many volumes, so a start-up runs this in the background. - refuse 🔒
- result_
of 🔒 - run 🔒
- view 🔒
- What the agent with uid
uidholds in cache volumes now.