> **Experimental**
>
> `@aws-cdk/aws-sagemaker-alpha` is an [**experimental**](/stability) (alpha) package: its API may change in any release, without a major version bump.
# ContainerImage

Constructs for types of container images.

- Stability: [Experimental](/cdk/api/stability.html)
- Source: [`lib/container-image.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0-alpha.0/packages/@aws-cdk/aws-sagemaker-alpha/lib/container-image.ts#L26)

## Example

```ts
import * as sagemaker from '@aws-cdk/aws-sagemaker-alpha';

declare const image: sagemaker.ContainerImage;
declare const modelData: sagemaker.ModelData;

const model = new sagemaker.Model(this, 'ContainerModel', {
  containers: [
    {
      image,
      modelData,
    }
  ],
  networkIsolation: true,
});
```

## Initializer

```ts
new ContainerImage()
```

## Methods

- `bind(scope: Construct, model: Model): ContainerImageConfig` — Called when the image is used by a Model.

- `fromAsset(directory: string, options?: DockerImageAssetOptions): ContainerImage // chainable` (static) — Reference an image that's constructed directly from sources on disk.

  **Parameters**

  - `directory` — The directory where the Dockerfile is stored.
  - `options` — The options to further configure the selected image.

- `fromDlc(repositoryName: string, tag: string, accountId?: string): ContainerImage // chainable` (static) — Reference an AWS Deep Learning Container image.

- `fromEcrRepository(repository: IRepository, tag?: string): ContainerImage // chainable` (static) — Reference an image in an ECR repository.
