get_config_header error on mac
See original GitHub issueThanks 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?
Issue Analytics
- State:
- Created 7 years ago
- Comments:16
Top Results From Across the Web
If an error occurred while updating or installing macOS
The message might say that an error occurred while downloading, preparing, or installing, or that the installer is damaged or could not be ......
Read more >Fixes or workarounds for recent issues in Outlook for Mac
Outlook for Mac features, add-ins, and know issues. [FIXED] Selecting Reply, Reply All, and Forward buttons is not working as expected.
Read more >How to fix Startup Disk Full error on your Mac? - CleanMyMac X
Your Startup disk is almost full? Check out how to clean up Mac's hard drive and free up available disk space.
Read more >"Error Code -36" on a Mac | What Causes It and How to Fix It
On some rare occasions, however, when trying to copy files, Mac users (often photographers) may encounter “error code -36”, which completely halts the...
Read more >Zoom error on macOS: You are unable to connect to Zoom
If you are on a macOS device and cannot connect to the Zoom application with error “You are unable to connect to Zoom....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
You may need to uninstall the
docker-py
package as it may be conflicting with the newdocker
package.Let me know if it helps.
So, I fixed this by removing the leftover files after an upgrade
I have upgraded from 1.6 to 2.4.2
Long story here
I got this error when I try to run a container for an image which does not exists.
here is the test_docker.py code
and here is the output
I done some debugging and i got
While checking the upstream code for release 2.4.2 https://github.com/docker/docker-py/tree/2.4.2-release/docker I saw that there is no auth package… only a module.
So, it looks like the trouble is from a bad upgrade.
Manual cleanup and all is good 😃
My versions