@@ -31,7 +31,7 @@ def get_image(self, image, chunk_size=DEFAULT_DATA_CHUNK_SIZE):
31
31
32
32
Example:
33
33
34
- >>> image = cli .get_image("busybox:latest")
34
+ >>> image = client.api .get_image("busybox:latest")
35
35
>>> f = open('/tmp/busybox-latest.tar', 'wb')
36
36
>>> for chunk in image:
37
37
>>> f.write(chunk)
@@ -379,7 +379,7 @@ def pull(self, repository, tag=None, stream=False, auth_config=None,
379
379
380
380
Example:
381
381
382
- >>> for line in cli .pull('busybox', stream=True, decode=True):
382
+ >>> for line in client.api .pull('busybox', stream=True, decode=True):
383
383
... print(json.dumps(line, indent=4))
384
384
{
385
385
"status": "Pulling image (latest) from busybox",
@@ -458,7 +458,7 @@ def push(self, repository, tag=None, stream=False, auth_config=None,
458
458
If the server returns an error.
459
459
460
460
Example:
461
- >>> for line in cli .push('yourname/app', stream=True, decode=True):
461
+ >>> for line in client.api .push('yourname/app', stream=True, decode=True):
462
462
... print(line)
463
463
{'status': 'Pushing repository yourname/app (1 tags)'}
464
464
{'status': 'Pushing','progressDetail': {}, 'id': '511136ea3c5a'}
@@ -549,7 +549,7 @@ def tag(self, image, repository, tag=None, force=False):
549
549
550
550
Example:
551
551
552
- >>> client.tag('ubuntu', 'localhost:5000/ubuntu', 'latest',
552
+ >>> client.api. tag('ubuntu', 'localhost:5000/ubuntu', 'latest',
553
553
force=True)
554
554
"""
555
555
params = {
0 commit comments