# DockerImageOptions

The options when creating a CodeBuild Docker build image using `LinuxBuildImage.fromDockerRegistry`, `WindowsBuildImage.fromDockerRegistry`, or `MacBuildImage.fromDockerRegistry`.

- Source: [`aws-codebuild/lib/project.ts`](https://github.com/aws/aws-cdk/blob/v2.274.0/packages/aws-cdk-lib/aws-codebuild/lib/project.ts#L1816)

## Example

```ts
environment: {
  buildImage: codebuild.LinuxBuildImage.fromDockerRegistry('my-registry/my-repo', {
    secretsManagerCredentials: secrets,
  }),
},
```

## Properties

- `secretsManagerCredentials`: [ISecret](/cdk/api/v2/docs/aws-cdk-lib.aws_secretsmanager.ISecret.html) = no credentials will be used (we assume the repository is public) — The credentials, stored in Secrets Manager, used for accessing the repository holding the image, if the repository is private.

  **Default:** no credentials will be used (we assume the repository is public)
