DockerVolume

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

Bases: object

__init__(*, container_path, host_path, consistency=None)

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

Return type

None

Attributes

consistency

Mount consistency.

Only applicable for macOS

default :default: DockerConsistency.DELEGATED

see :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