Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

WithImagePullPolicy

Method
📦 Aspire.Hosting v17.0.0
func (ContainerResource) 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().

Applies to

This method applies to the following types: