tag - Tag or untag an image¶
Assign or remove a tag from an image. Tags are human-readable names that make images easier to reference.
Examples¶
# 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)
Help output¶
Usage¶
Tags are free-form strings. A common convention is scope/purpose:version:
contree tag UUID ubuntu-with-curl:latest
contree tag UUID my-project/dev-env:v2
Once tagged, reference the image anywhere with the tag: prefix:
contree use tag:ubuntu-with-curl:latest
Tagging an image that already has a different tag replaces the old tag.
See also¶
images - List and import images – list images and their tags
Your First Sandbox – working with images