# ImagePullPolicy

- Module: [Aspire.Hosting](/reference/api/go/aspire.hosting.md)
- Version: `17.0.0`
- Kind: `enum`
- Source: [GitHub](https://github.com/microsoft/aspire/tree/bcfa151cdca6d0a573f22d5d9c23f9c727cb3b2f)

Image pull policies for container resources.

## Definition

```go
type ImagePullPolicy string

const (
    ImagePullPolicyDefault ImagePullPolicy = "Default"
    ImagePullPolicyAlways  ImagePullPolicy = "Always"
    ImagePullPolicyMissing ImagePullPolicy = "Missing"
    ImagePullPolicyNever   ImagePullPolicy = "Never"
)
```

## Values

- `ImagePullPolicyDefault` = `"Default"` -- Default image pull policy behavior. Currently this will be the same as the default behavior for your container runtime.
- `ImagePullPolicyAlways` = `"Always"` -- Always pull the image when creating the container.
- `ImagePullPolicyMissing` = `"Missing"` -- Pull the image only if it does not already exist.
- `ImagePullPolicyNever` = `"Never"` -- Never pull the image from the registry even if it is missing locally.
