Documentation

VolumesCreatePostBody

Table of Contents

$driver  : string|null
Name of the volume driver to use.
$driverOpts  : array<string|int, string>|null
A mapping of driver options and values. These options are.
$labels  : array<string|int, string>|null
User-defined key/value metadata.
$name  : string|null
The new volume's name. If not specified, Docker generates a name.
getDriver()  : string|null
Name of the volume driver to use.
getDriverOpts()  : array<string|int, string>|null
A mapping of driver options and values. These options are.
getLabels()  : array<string|int, string>|null
User-defined key/value metadata.
getName()  : string|null
The new volume's name. If not specified, Docker generates a name.
setDriver()  : self
Name of the volume driver to use.
setDriverOpts()  : self
A mapping of driver options and values. These options are.
setLabels()  : self
User-defined key/value metadata.
setName()  : self
The new volume's name. If not specified, Docker generates a name.

Properties

$driverOpts

A mapping of driver options and values. These options are.

protected array<string|int, string>|null $driverOpts

$name

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

protected string|null $name

Methods

getDriver()

Name of the volume driver to use.

public getDriver() : string|null
Return values
string|null

getDriverOpts()

A mapping of driver options and values. These options are.

public getDriverOpts() : array<string|int, string>|null
Return values
array<string|int, string>|null

getLabels()

User-defined key/value metadata.

public getLabels() : array<string|int, string>|null
Return values
array<string|int, string>|null

getName()

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

public getName() : string|null
Return values
string|null

setDriver()

Name of the volume driver to use.

public setDriver(string|null $driver) : self
Parameters
$driver : string|null
Return values
self

setDriverOpts()

A mapping of driver options and values. These options are.

public setDriverOpts(array<string|int, string>|null $driverOpts) : self
Parameters
$driverOpts : array<string|int, string>|null
Return values
self

setLabels()

User-defined key/value metadata.

public setLabels(array<string|int, string>|null $labels) : self
Parameters
$labels : array<string|int, string>|null
Return values
self

setName()

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

public setName(string|null $name) : self
Parameters
$name : string|null
Return values
self

Search results