DockerVolume
A Docker volume.
Initializer
using AlibabaCloud.SDK.ROS.CDK.Core;
new DockerVolume {
string ContainerPath,
string HostPath,
DockerVolumeConsistency Consistency = null
};
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 string ContainerPath { get; set; }
- Type: string
The path where the file or directory is mounted in the container.
HostPath
Required
public string HostPath { get; set; }
- Type: string
The path to the file or directory on the host machine.
Consistency
Optional
public DockerVolumeConsistency Consistency { get; set; }
- Type: DockerVolumeConsistency
- Default: DockerConsistency.DELEGATED
Mount consistency.
Only applicable for macOS
https://docs.docker.com/storage/bind-mounts/#configure-mount-consistency-for-macos