withImage

Method
📦 Aspire.Hosting v17.0.0
interface ContainerResource {
// ... omitted for brevity
withImage(
image: string,
tag?: string): ContainerResource;
}

Signature

methodwithImagebuilder
Allows overriding the image on a container.
withImage(
image: string,
tag?: string): ContainerResource
imagestringImage value.
tagstringoptionalTag value.
ContainerResource

Applies to

This method applies to the following types: