Skip to content

DockerVolume

A Docker volume.

Initializer

import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore"
&alicloudroscdkcore.DockerVolume {
    ContainerPath: *string,
    HostPath: *string,
    Consistency: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.DockerVolumeConsistency,
}

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

ContainerPath *string
  • Type: *string

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


HostPathRequired

HostPath *string
  • Type: *string

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