@@ -266,7 +266,7 @@ def load(self, data):
266
266
267
267
return [self .get (i ) for i in images ]
268
268
269
- def pull (self , name , tag = None , ** kwargs ):
269
+ def pull (self , repository , tag = None , ** kwargs ):
270
270
"""
271
271
Pull an image of the given name and return it. Similar to the
272
272
``docker pull`` command.
@@ -280,7 +280,6 @@ def pull(self, name, tag=None, **kwargs):
280
280
Args:
281
281
name (str): The repository to pull
282
282
tag (str): The tag to pull
283
- insecure_registry (bool): Use an insecure registry
284
283
auth_config (dict): Override the credentials that
285
284
:py:meth:`~docker.client.DockerClient.login` has set for
286
285
this request. ``auth_config`` should contain the ``username``
@@ -305,12 +304,12 @@ def pull(self, name, tag=None, **kwargs):
305
304
>>> images = client.images.pull('busybox')
306
305
"""
307
306
if not tag :
308
- name , tag = parse_repository_tag (name )
307
+ repository , tag = parse_repository_tag (repository )
309
308
310
- self .client .api .pull (name , tag = tag , ** kwargs )
309
+ self .client .api .pull (repository , tag = tag , ** kwargs )
311
310
if tag :
312
- return self .get ('{0}:{1}' .format (name , tag ))
313
- return self .list (name )
311
+ return self .get ('{0}:{1}' .format (repository , tag ))
312
+ return self .list (repository )
314
313
315
314
def push (self , repository , tag = None , ** kwargs ):
316
315
return self .client .api .push (repository , tag = tag , ** kwargs )
0 commit comments