Tag Image

Description

Add an image tag.

Tagging an image will result in the creation of a new Docker Image tag. If registry not specified - default is used.

Command

codefresh tag <id> [tags..]

Arguments

Option Alias Default Description
id Docker image id
names Tag names

Options

Option Alias Type Default Description
--help Print help information
--registry -r Registry integration name

Examples

Tag image ‘2dfacdaad466’ with a new tag: ‘1.0.0’ on default registry

codefresh tag 2dfacdaad466 1.0.0

Tag image ‘2dfacdaad466’ with a new tag: ‘1.0.0’ on dockerhub

codefresh tag 2dfacdaad466 1.0.0 --registry dockerhub

Tag image ‘2dfacdaad466’ with multiple tags: ‘1.0.0’ and ‘my-tag’

codefresh tag 2dfacdaad466 1.0.0 my-tag