Closed
Description
Thanks in advance for the help
client = docker.from_env()
client.containers.run("ubuntu", "echo hello world")
/usr/local/lib/python2.7/site-packages/docker/models/containers.pyc in run(self, image, command, stdout, stderr, remove, **kwargs)
653 detach=detach, **kwargs)
654 except ImageNotFound:
--> 655 self.client.images.pull(image)
656 container = self.create(image=image, command=command,
657 detach=detach, **kwargs)
/usr/local/lib/python2.7/site-packages/docker/models/images.pyc in pull(self, name, **kwargs)
254 >>> image = client.images.pull('busybox')
255 """
--> 256 self.client.api.pull(name, **kwargs)
257 return self.get(name)
258
/usr/local/lib/python2.7/site-packages/docker/api/image.pyc in pull(self, repository, tag, stream, insecure_registry, auth_config, decode)
331 if utils.compare_version('1.5', self._version) >= 0:
332 if auth_config is None:
--> 333 header = auth.get_config_header(self, registry)
334 if header:
335 headers['X-Registry-Auth'] = header
AttributeError: 'module' object has no attribute 'get_config_header'
What am I doing wrong?