DockerVolume
A Docker volume.
Initializer
import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore"
&alicloudroscdkcore.DockerVolume {
ContainerPath: *string,
HostPath: *string,
Consistency: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.DockerVolumeConsistency,
}
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
ContainerPath *string
- Type: *string
The path where the file or directory is mounted in the container.
HostPath
Required
HostPath *string
- Type: *string
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