Skip to content

Client.build crashes when trying to pull a new image if HttpHeaders are set in config file #1148

Closed

Description

@shin-
import docker

c = docker.Client()
c.build('https://github.com/docker/compose.git')
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-3-d78c607c9627> in <module>()
----> 1 c.build('https://github.com/docker/compose.git')

/home/joffrey/.envs/pydocker/local/lib/python2.7/site-packages/docker/api/build.pyc in build(self, path, tag, quiet, fileobj, nocache, rm, stream, timeout, custom_context, encoding, pull, forcerm, dockerfile, container_limits, decode, buildargs, gzip)
    102             headers=headers,
    103             stream=stream,
--> 104             timeout=timeout,
    105         )
    106 

/home/joffrey/.envs/pydocker/local/lib/python2.7/site-packages/docker/utils/decorators.pyc in inner(self, *args, **kwargs)
     44                 kwargs['headers'] = self._auth_configs['HttpHeaders']
     45             else:
---> 46                 kwargs['headers'].update(self._auth_configs['HttpHeaders'])
     47         return f(self, *args, **kwargs)
     48     return inner

AttributeError: 'NoneType' object has no attribute 'update'

Activity

  1. added this to the 1.10.0 milestone on Aug 2, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions