Cloud API Overview > @adpt/cloud > docker > ImageRef > type
docker.ImageRef.type property
The type of an image reference indicates how the image can be accessed, either through a Docker host (daemon) or directly to a container registry.
Signature:
readonly type: ImageRefType;
Remarks
A reference is a valid dockerhost
type ref when it contains a valid dockerHost string and either: - A valid image id or - A valid path and either a valid tag or digest.
A reference is a valid registry
type ref when it contains a valid domain, path, and either a tag or a digest.
If not enough information is present to access and uniquely identify a container image, the type is incomplete
.