Docker CLI

docker image tag

Add or change a local image reference without uploading it. Verify that the target is a fresh lab alias before mutation. Compare source and new alias IDs before cleanup; stop if they differ.

Formal Syntax & Structure

docker syntaxdocker
docker image tag SOURCE_IMAGE[:TAG] TARGET_IMAGE[:TAG]

Working Example

Example Snippetdocker
docker image tag busybox:1.37 bm03/demo:local
Docker Reference