DockerVolume
A Docker volume.
Initializer
import ros_cdk_core
ros_cdk_core.DockerVolume(
container_path: str,
host_path: str,
consistency: DockerVolumeConsistency = None
)
Properties
Name | Type | Description |
---|---|---|
container_path |
str |
The path where the file or directory is mounted in the container. |
host_path |
str |
The path to the file or directory on the host machine. |
consistency |
DockerVolumeConsistency |
Mount consistency. |
container_path
Required
container_path: str
- Type: str
The path where the file or directory is mounted in the container.
host_path
Required
host_path: str
- Type: str
The path to the file or directory on the host machine.
consistency
Optional
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