microagent image
Last updated: 2026-06-25
microagent image pull <image> [--state-dir <dir>] Pull and record an imagemicroagent image list [--state-dir <dir>] List local image recordsmicroagent image push <image> [--state-dir <dir>] Push a committed imagemicroagent image tag <source> <target> [--state-dir <dir>] Tag an image recordmicroagent image delete <image> [--delete] [--yes] [--state-dir <dir>] Remove an image recordmicroagent image prune [--delete] [--yes] [--state-dir <dir>] Prune stale image recordsimage reads the local image index. Successful workspace rootfs
builds and image pull record the source image reference, resolved digest,
platform, rootfs path, size, and last-used time.
Examples
Section titled “Examples”Pull an image once, then reuse it for clean workspaces:
microagent image pull docker.io/library/ubuntu:24.04microagent image listmicroagent create research --image docker.io/library/ubuntu:24.04Tag and remove local records:
microagent image tag sha256:abc local/ubuntu:baselinemicroagent image delete local/ubuntu:baselinePrune stale records, or also delete reusable rootfs baselines:
microagent --json image prunemicroagent --json image prune --delete --yesimage list prints one row per recorded image:
IMAGE DIGEST PLATFORM SIZE LAST USEDdocker.io/library/ubuntu:24.04 sha256:abc... linux/amd64 268435456 2026-06-01T12:00:00ZWith the global --json flag, the records are returned under images:
{ "images": [ { "image_ref": "docker.io/library/ubuntu:24.04", "resolved_ref": "docker.io/library/ubuntu@sha256:abc...", "digest": "sha256:abc...", "platform": { "os": "linux", "architecture": "amd64" }, "output_path": "/home/user/.microagent/images/sha256-abc.../rootfs.ext4", "size_bytes": 268435456, "last_used_at": "2026-06-01T12:00:00Z" } ]}Commands
Section titled “Commands”| Command | Description |
|---|---|
pull | Build and record a reusable local rootfs from an OCI image |
list | Show locally recorded images |
push | Push a committed image from the local OCI layout to its registry |
tag | Add another local name for an existing image record |
delete | Remove a local image record, optionally deleting an unshared baseline |
prune | Remove stale records, and optionally delete reusable local rootfs baselines |
By default, prune updates only the image index by removing records whose
rootfs path no longer exists. With --delete, it also deletes reusable rootfs
baselines under the local image store and removes every record pointing to
those files after confirmation. It does not delete workspace-owned rootfs files.
tag resolves <source> against the recorded image reference, resolved
reference, or digest. It creates another index record pointing at the same
local rootfs path.
delete resolves <image> the same way. With --delete, it asks for confirmation
and deletes a reusable image-store rootfs only when no remaining image record
points to that file.
For clean workspace baselines, create reuses a pulled or tagged image record
when the workspace has no setup commands, entrypoint, env overrides, or
attached disks. Workspaces that need guest config are rebuilt from the source
OCI image so their init config is baked into the rootfs.
For private registries, image pulls resolve credentials without any Docker
dependency: from $REGISTRY_AUTH_FILE (the convention shared with
Podman/Skopeo/Buildah) or ~/.microagent/auth.json (written by
microagent registry login). Credential helpers are never
executed, and public images always pull anonymously. microagent does not write
Docker’s login state. See registry for details.
Flags you’ll actually use:
--delete(delete/prune) - actually delete rootfs baselines, not just records--yes/-y(delete/prune) - skip the confirmation prompt in scripts--arch <arch>(pull) - pull for a non-default guest architecture--size-mib <MiB>(pull) - size the built rootfs
Pull flags
Section titled “Pull flags”| Flag | Description |
|---|---|
--arch <arch> | Target architecture |
--size-mib <MiB> | Rootfs image size |
--mke2fs <path> | mke2fs binary path |
--guest-init <path> | Guest init binary path |
Prune flags
Section titled “Prune flags”| Flag | Description |
|---|---|
--delete | Delete reusable image-store rootfs files and their records |
--yes, -y | Confirm deletion without prompting |
Delete flags
Section titled “Delete flags”| Flag | Description |
|---|---|
--delete | Delete the reusable image-store rootfs when no kept record still uses it |
--yes, -y | Confirm deletion without prompting |
Exit status
Section titled “Exit status”images subcommands exit 0 on success; nonzero when an image reference
cannot be resolved, a pull or push fails, or a deletion needs confirmation that
non-interactive input cannot provide. In AX mode a failure is written as a
structured error envelope.