# DockerVolume

A Docker volume.

- Source: [`core/lib/bundling.ts`](https://github.com/aws/aws-cdk/blob/v2.274.0/packages/aws-cdk-lib/core/lib/bundling.ts#L489)

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as cdk from 'aws-cdk-lib';
const dockerVolume: cdk.DockerVolume = {
  containerPath: 'containerPath',
  hostPath: 'hostPath',

  // the properties below are optional
  consistency: cdk.DockerVolumeConsistency.CONSISTENT,
};
```

## Properties

- `consistency`: [DockerVolumeConsistency](/cdk/api/v2/docs/aws-cdk-lib.DockerVolumeConsistency.html) = DockerConsistency.DELEGATED — Mount consistency.

  Only applicable for macOS

- `containerPath`: string (required) — The path where the file or directory is mounted in the container.

- `hostPath`: string (required) — The path to the file or directory on the host machine.
