summaryrefslogtreecommitdiff
path: root/docker/api/build.py
diff options
context:
space:
mode:
authorJoffrey F <joffrey@docker.com>2016-11-23 15:15:58 -0800
committerJoffrey F <joffrey@docker.com>2016-11-28 15:28:04 -0800
commitf5ac10c469fca252e69ae780749f4ec6fe369789 (patch)
treeedd59b15fb03c7ce68187fbd8a41dd00f0d19537 /docker/api/build.py
parentc66c7f8b0a8ca216e21c9fe1903eb79f4406a93e (diff)
downloaddocker-py-docker_client.tar.gz
Rename Client -> DockerClientdocker_client
Replace references to old Client with APIClient Moved contents of services.md to appropriate locations Signed-off-by: Joffrey F <joffrey@docker.com>
Diffstat (limited to 'docker/api/build.py')
-rw-r--r--docker/api/build.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/docker/api/build.py b/docker/api/build.py
index 297c9e0..7cf4e0f 100644
--- a/docker/api/build.py
+++ b/docker/api/build.py
@@ -32,7 +32,7 @@ class BuildApiMixin(object):
Example:
>>> from io import BytesIO
- >>> from docker import Client
+ >>> from docker import APIClient
>>> dockerfile = '''
... # Shared Volume
... FROM busybox:buildroot-2014.02
@@ -40,7 +40,7 @@ class BuildApiMixin(object):
... CMD ["/bin/sh"]
... '''
>>> f = BytesIO(dockerfile.encode('utf-8'))
- >>> cli = Client(base_url='tcp://127.0.0.1:2375')
+ >>> cli = APIClient(base_url='tcp://127.0.0.1:2375')
>>> response = [line for line in cli.build(
... fileobj=f, rm=True, tag='yourname/volume'
... )]