DockerVolume
A Docker volume.
Initializer
import { DockerVolume } from '@alicloud/ros-cdk-core'
const dockerVolume: DockerVolume = { ... }
Properties
Name | Type | Description |
---|---|---|
containerPath |
string |
The path where the file or directory is mounted in the container. |
hostPath |
string |
The path to the file or directory on the host machine. |
consistency |
DockerVolumeConsistency |
Mount consistency. |
containerPath
Required
public readonly containerPath: string;
- Type: string
The path where the file or directory is mounted in the container.
hostPath
Required
public readonly hostPath: string;
- Type: string
The path to the file or directory on the host machine.
consistency
Optional
public readonly consistency: DockerVolumeConsistency;
- Type: DockerVolumeConsistency
- Default: DockerConsistency.DELEGATED
Mount consistency.
Only applicable for macOS
https://docs.docker.com/storage/bind-mounts/#configure-mount-consistency-for-macos