Skip to content

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.

ContainerPathRequired

public string ContainerPath { get; set; }
  • Type: string

The path where the file or directory is mounted in the container.


HostPathRequired

public string HostPath { get; set; }
  • Type: string

The path to the file or directory on the host machine.


ConsistencyOptional

public DockerVolumeConsistency Consistency { get; set; }

Mount consistency.

Only applicable for macOS

https://docs.docker.com/storage/bind-mounts/#configure-mount-consistency-for-macos