class Docker extends Container

Constants

VERSION

DOCKER_HEALTH_STARTING

DOCKER_HEALTH_HEALTHY

DOCKER_HEALTH_UNHEALTHY

DOCKER_HEALTH_NONE

DOCKER_STATUS_CREATED

DOCKER_STATUS_RESTARTING

DOCKER_STATUS_RUNNING

DOCKER_STATUS_REMOVING

DOCKER_STATUS_PAUSED

DOCKER_STATUS_EXITED

DOCKER_STATUS_DEAD

Properties

protected $providers
Client $config
Client $container
Client $distribution
Client $image
Client $network
Client $plugin
Client $secret
Client $swarm
Client $node
Client $service
Client $system
Client $task
Client $volume
Curl $curl
string $docker_host

Methods

__construct(array $option, Curl $curl)

No description

static array
createOptionArray(string|null $docker_host, bool $docker_tls_verify = false, string $docker_cert_path = null, string $docker_username = null, string $docker_password = null, string $docker_registry = null, int $docker_timeout = 0)

No description

connection(string $name = 'default')

No description

static Docker
docker(array $option)

单例模式.

mixed
__get($name)

No description

__call($name, $arguments)

No description

version()

No description

Client
config()

No description

Details

at line 80
__construct(array $option, Curl $curl)

Parameters

array $option
Curl $curl

at line 113
static array createOptionArray(string|null $docker_host, bool $docker_tls_verify = false, string $docker_cert_path = null, string $docker_username = null, string $docker_password = null, string $docker_registry = null, int $docker_timeout = 0)

Parameters

string|null $docker_host
bool $docker_tls_verify
string $docker_cert_path
string $docker_username
string $docker_password
string $docker_registry
int $docker_timeout

Return Value

array

at line 132
connection(string $name = 'default')

Parameters

string $name

at line 156
static Docker docker(array $option)

单例模式.

Parameters

array $option

Return Value

Docker

at line 176
mixed __get($name)

Parameters

$name

Return Value

mixed

Exceptions

Exception

at line 185
__call($name, $arguments)

Parameters

$name
$arguments

at line 190
version()

at line 34
Client config()

Return Value

Client