Watch Aspire live streamsDocsTry Aspire
Watch Aspire live streamsDocsTry

withImageSHA256

Method
📦 Aspire.Hosting v13.5.4
interface ContainerResource {
// ... omitted for brevity
withImageSHA256(sha256: string): ContainerResource;
}

Signature

methodwithImageSHA256builder
Allows setting the image to a specific sha256 on a container.
withImageSHA256(sha256: string): ContainerResource
sha256string
ContainerResource

Applies to

This method applies to the following types: