Interface IDockerVolume
A Docker volume.
public interface IDockerVolume
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK;
var dockerVolume = new DockerVolume {
ContainerPath = "containerPath",
HostPath = "hostPath",
// the properties below are optional
Consistency = DockerVolumeConsistency.CONSISTENT
};
Remarks
ExampleMetadata: fixture=_generated
Properties
Consistency
Mount consistency.
DockerVolumeConsistency? Consistency { get; }
Property Value
Remarks
Only applicable for macOS
Default: DockerConsistency.DELEGATED
See: https://docs.docker.com/storage/bind-mounts/#configure-mount-consistency-for-macos
ContainerPath
The path where the file or directory is mounted in the container.
string ContainerPath { get; }
Property Value
HostPath
The path to the file or directory on the host machine.
string HostPath { get; }