Cloud API Overview > @adpt/cloud > docker > DockerImageInstance > pushTo
docker.DockerImageInstance.pushTo() method
Pushes the image returned by latestImage
to a Docker registry.
Signature:
pushTo?({ ref }: {
ref: NameTagString;
}): MaybePromise<ImageRefRegistry | undefined>;
Parameters
Parameter | Type | Description |
---|---|---|
{ ref } | { ref: NameTagString; } |
Returns:
MaybePromise<ImageRefRegistry | undefined>
Remarks
If there is no latest image available (latestImage
returns undefined), then pushTo
will return undefined. Otherwise, if the push was successful, returns an docker.ImageRefRegistry that contains the complete nameTag, including registry portion.