VolumeCreateOptions

@Serializable
data class VolumeCreateOptions(val name: String? = null, val driver: String? = "local", val driverOpts: Map<String, String>? = null, val labels: Map<String, String>? = null, val clusterVolumeSpec: ClusterVolumeSpec? = null)

Volume configuration

Parameters

name

The new volume's name. If not specified, Docker generates a name.

driver

Name of the volume driver to use.

driverOpts

A mapping of driver options and values. These options are passed directly to the driver and are driver specific.

labels

User-defined key/value metadata.

clusterVolumeSpec

Constructors

Link copied to clipboard
constructor(name: String? = null, driver: String? = "local", driverOpts: Map<String, String>? = null, labels: Map<String, String>? = null, clusterVolumeSpec: ClusterVolumeSpec? = null)

Properties

Link copied to clipboard
@SerialName(value = "ClusterVolumeSpec")
val clusterVolumeSpec: ClusterVolumeSpec?
Link copied to clipboard
@SerialName(value = "Driver")
val driver: String?
Link copied to clipboard
@SerialName(value = "DriverOpts")
val driverOpts: Map<String, String>?
Link copied to clipboard
@SerialName(value = "Labels")
val labels: Map<String, String>?
Link copied to clipboard
@SerialName(value = "Name")
val name: String?