Cloud API Overview > @adpt/cloud > docker > ImageRef > nameTag
docker.ImageRef.nameTag property
The image name (including any registry) and image tag. Returns undefined if either path or tag are not set. If nameTag is set to a string that does not contain a tag (i.e. does not include a ":"), the default tag of latest
will be set. To set nameTag without defaulting to latest
, call the class method setNameTag
with the parameter useDefaultTag
set to false
.
Signature:
readonly nameTag?: string;
Example
gcr.io/my-project/image:1.0.1