class Client

Class Client.

Traits

Constants

BASE_URL

Methods

__construct(Curl $curl, string $docker_host)

Volume constructor.

mixed
list(array $filters = [])

No description

mixed
create(string $auth, string $name, array $labels = null, array $taskTemplate, array $mode, array $updateConfig, array $rollbackConfig, array $networks, array $endpointSpec)

No description

mixed
inspect(string $id, bool $insertDefaults = false)

No description

mixed
delete(string $id)

No description

mixed
update(string $id, int $version, string $registryAuthFrom = 'spec', string $rollback, string $auth, array $request_body)

No description

mixed
logs(string $id, bool $details = false, bool $follow = false, bool $stdout = false, bool $stderr = false, int $since = 0, bool $timestamps = false, string $tail = 'all')

No description

Details

in DockerTrait at line 22
__construct(Curl $curl, string $docker_host)

Volume constructor.

Parameters

Curl $curl
string $docker_host

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

Parameters

array $filters id= label= mode=["replicated"|"global"] name=

Return Value

mixed

Exceptions

Exception

at line 46
mixed create(string $auth, string $name, array $labels = null, array $taskTemplate, array $mode, array $updateConfig, array $rollbackConfig, array $networks, array $endpointSpec)

Parameters

string $auth
string $name
array $labels
array $taskTemplate
array $mode
array $updateConfig
array $rollbackConfig
array $networks
array $endpointSpec

Return Value

mixed

Exceptions

Exception

See also

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

at line 83
mixed inspect(string $id, bool $insertDefaults = false)

Parameters

string $id
bool $insertDefaults

Return Value

mixed

Exceptions

Exception

at line 95
mixed delete(string $id)

Parameters

string $id

Return Value

mixed

Exceptions

Exception

at line 111
mixed update(string $id, int $version, string $registryAuthFrom = 'spec', string $rollback, string $auth, array $request_body)

Parameters

string $id
int $version
string $registryAuthFrom
string $rollback
string $auth
array $request_body

Return Value

mixed

Exceptions

Exception

See also

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

at line 142
mixed logs(string $id, bool $details = false, bool $follow = false, bool $stdout = false, bool $stderr = false, int $since = 0, bool $timestamps = false, string $tail = 'all')

Parameters

string $id
bool $details
bool $follow
bool $stdout
bool $stderr
int $since
bool $timestamps
string $tail

Return Value

mixed

Exceptions

Exception