Examples
Help output
Usage
Tags are free-form strings. A common convention isscope/purpose:version:
tag: prefix:
See also
- images - List and import images – list images and their tags
- Your First Sandbox – working with images
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
# Tag an image
contree tag 3f2a7b... my-app:v1.0
# Remove a tag
contree tag 3f2a7b... my-app:v1.0 --delete
# Use the tagged image
eval $(contree use tag:my-app:v1.0)
usage: contree tag [-h] [-U] ARG [ARG …]
Assign or remove a tag from an image.
Tags provide human-readable names for image UUIDs, making them easier
to reference in commands like `contree use tag:NAME`.
With one argument, tags the current session image.
With two arguments, the first is the image reference and the second is the tag.
Use -U/—delete/—rm to remove a tag instead of assigning one.
positional arguments:
ARG TAG (current image) or IMAGE_REF TAG
options:
-h, —help show this help message and exit
-U, —delete, —rm Remove tag from image
examples:
contree tag python-dev:latest # tag current session image
contree tag UUID python-dev:latest # tag specific image by UUID
contree tag tag:alpine:latest my-alpine # re-tag by reference
contree tag -U UUID my-tag # remove a tag (or —delete/—rm)
for coding agents:
mutating command
default action assigns tag; use —delete to remove mapping
agent note:
Before using this command in an automated workflow, read:
contree agentscope/purpose:version:
contree tag UUID ubuntu-with-curl:latest
contree tag UUID my-project/dev-env:v2
tag: prefix:
contree use tag:ubuntu-with-curl:latest
Was this page helpful?