DockerVolume

class aws_cdk.core.DockerVolume(*, container_path, host_path, consistency=None)

Bases: object

A Docker volume.

Parameters
  • 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 (Optional[DockerVolumeConsistency]) – Mount consistency. Only applicable for macOS Default: DockerConsistency.DELEGATED

Attributes

consistency

Mount consistency.

Only applicable for macOS

Default

DockerConsistency.DELEGATED

See

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

Return type

Optional[DockerVolumeConsistency]

container_path

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

Return type

str

host_path

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

Return type

str