The documentation for Images::pull states the usage as: pull(name, **kwargs). However, its Parameters description does not have 'name' but just has 'repository' (which used to work with the older low-level api client)
Looking at the code, the docker-py/docker/models/images.py has the function declared as:
def pull(self, name, **kwargs) and passes name, kwargs to the docker-py/docker/api/image.py:: ImageApiMixin::pull whose parameter is named repository (and not name).
The consequence is:
client.images.pull(repository=
client.images.pull(name=
client.images.pull('image_name') - works - and works for a name that has registry / tag in it.
Given that under the wraps, we are accepting a repository format for this API, Can we just rename the only mandatory parameter as repository (from current 'name'). This would be consistent with the older behavior and to be consistent with the push api - and more in line with the actual default behavior when no parameter name is specified.
Thanks for the report - we'll look into it and figure out the best way to approach a fix.
@swagh1983 how does it work for registry and tag in it? whats the format?
Most helpful comment
@swagh1983 how does it work for registry and tag in it? whats the format?