class Client

Class Client.

Constants

BASE_URL

Methods

__construct(Curl $curl, string $docker_host)

Volume constructor.

mixed
list(array $filters = [])

No description

mixed
create(string $name, string $drive = null, array $driveOpts = null, array $labels = null)

No description

mixed
inspect(string $name)

No description

mixed
remove(string $name, bool $force = false)

No description

mixed
prune(array $filters = [])

No description

Details

at line 30
__construct(Curl $curl, string $docker_host)

Volume constructor.

Parameters

Curl $curl
string $docker_host

at line 44
mixed list(array $filters = [])

Parameters

array $filters

Return Value

mixed

Exceptions

Exception

See also

https://docs.docker.com/engine/api/v1.37/#operation/VolumeList

at line 79
mixed create(string $name, string $drive = null, array $driveOpts = null, array $labels = null)

Parameters

string $name
string $drive
array $driveOpts
array $labels

Return Value

mixed

Exceptions

Exception

See also

https://docs.docker.com/engine/api/v1.37/#operation/VolumeCreate

at line 98
mixed inspect(string $name)

Parameters

string $name

Return Value

mixed

Exceptions

Exception

at line 110
mixed remove(string $name, bool $force = false)

Parameters

string $name
bool $force

Return Value

mixed

Exceptions

Exception

at line 130
mixed prune(array $filters = [])

Parameters

array $filters label (label=, label==, label!=, or label!==)

Prune volumes with (or without, in case label!=... is used) the specified labels.

Return Value

mixed

Exceptions

Exception

See also

https://docs.docker.com/engine/api/v1.37/#operation/VolumePrune