Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

ContainerResource.WithImagePullPolicy

Method
📦 Aspire.Hosting v17.0.0
type ContainerResource interface {
// ... omitted for brevity
WithImagePullPolicy(pullPolicy ImagePullPolicy) ContainerResource
}

Signature

methodWithImagePullPolicybuilder
Sets the pull policy for the container resource.
WithImagePullPolicy(pullPolicy ImagePullPolicy) ContainerResource
pullPolicyImagePullPolicyThe pull policy behavior for the container resource.
ContainerResource

The resource builder.

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

Defined on

This method is defined on the following type: