Skip to content

DockerVolume

A Docker volume.

Initializer

import ros_cdk_core
ros_cdk_core.DockerVolume(
  container_path: str,
  host_path: str,
  consistency: DockerVolumeConsistency = None
)

Properties

Name Type Description
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 DockerVolumeConsistency Mount consistency.

container_pathRequired

container_path: str
  • Type: str

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


host_pathRequired

host_path: str
  • Type: str

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


consistencyOptional

consistency: DockerVolumeConsistency

Mount consistency.

Only applicable for macOS

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