Client
class Client
Image.
Constants
TYPE |
|
BASE_URL |
|
Methods
No description
No description
No description
No description
No description
如果 tag 为空,则拉取所有标签,所以必须指定名称 额外增加 $force 参数,拉取前首先判断是否已存在。
No description
No description
No description
No description
No description
No description
No description
No description
Create a new image from a container.
Get a tarball containing all images and metadata for a repository.
Get a tarball containing all images and metadata for several image repositories.
Load a set of images and tags into a repository.
Details
at line 66
__construct(Curl $curl, $docker_host)
at line 120
mixed
list(bool $all = false, array $filters = null, bool $digests = false)
at line 155
mixed
build(string|null $gitAddress, string|null $auth, string $tag, int|null $shmsize, string $dockerfile = 'Dockerfile', string $extrahosts = null, bool $q = false, bool $nocache = false, string $cachefrom = null, string $pull = null, bool $rm = true, bool $forcerm = false, array $buildargs = null, bool $squash = false, array $labels = null, string $networkmode = null, string $platform = null, string|null $request = null)
at line 213
mixed
deleteBuildCache()
at line 247
array
parseImage(string $image, string $tag = 'latest')
at line 282
mixed
pull(string $image, string $tag = 'latest', bool $force = false, string $auth = null, string $platform = null)
如果 tag 为空,则拉取所有标签,所以必须指定名称 额外增加 $force 参数,拉取前首先判断是否已存在。
at line 306
mixed
import(string $fromSrc, string $repo = null, string $auth = null, string $platform = null, string $request = null)
at line 330
mixed
inspect(string $name)
at line 342
mixed
history(string $name)
at line 356
mixed
push(string $image, string $tag = 'latest', string $auth = null)
at line 378
mixed
tag(string $name, string $repo, string $tag = 'latest')
at line 395
mixed
remove(string $name, bool $force = false, bool $noprune = false)
at line 418
mixed
search(string $term, int $limit = null, array $filters = [])
at line 446
mixed
prune(array $filters = [])
at line 469
mixed
commit(string $container, string $repo, string $tag, string $comment, string $author, bool $pause, string $changes, array $request_body)
Create a new image from a container.
at line 502
mixed
export(string $name)
Get a tarball containing all images and metadata for a repository.
at line 516
mixed
exports(array $names)
Get a tarball containing all images and metadata for several image repositories.
at line 530
mixed
load(string $tar, bool $quiet = false)
Load a set of images and tags into a repository.