Skip to main content

Tagging images

Just like tagging images with docker tag, the policy CLI allows you to tag an existing image with a new tag:

policy tag <image-name> [<registry>/]<organization-name>/<repository-name>:<tag>

Example

$ policy tag ogazitt/peoplefinder:1.0.0 ogazitt/peoplefinder:latest

Tagging image.
reference: ogazitt/peoplefinder:latest

Check out the new tag:

$ policy images

| REPOSITORY | TAG | SIZE | CREATED AT |
|------------------------------|--------|-------|---------------|
| ogazitt/peoplefinder | 1.0.0 | 555 B | 5 minutes ago |
| ogazitt/peoplefinder | latest | 555 B | 5 minutes ago |