Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

WithImageSHA256

Method
📦 Aspire.Hosting v17.0.0
func (ContainerResource) WithImageSHA256(sha256 string) ContainerResource

Signature

methodWithImageSHA256builder
Allows setting the image to a specific sha256 on a container.
WithImageSHA256(sha256 string) ContainerResource
sha256stringRegistry value.
ContainerResource

The resource builder.

Returns a handle; failures surface later via Err().

Applies to

This method applies to the following types: