Skip to content

docker.from_env() causes TypeError: load_config() got an unexpected keyword argument 'config_dict'  #1916

Closed
@w7089

Description

@w7089

After upgrading docker to Server Version: 17.12.0-ce and docker-py to 3.0.1

Getting error:

Traceback (most recent call last):
File "", line 1, in
File "/usr/lib/python2.7/site-packages/docker/client.py", line 81, in from_env
**kwargs_from_env(**kwargs))
File "/usr/lib/python2.7/site-packages/docker/client.py", line 38, in init
self.api = APIClient(*args, **kwargs)
File "/usr/lib/python2.7/site-packages/docker/api/client.py", line 110, in init
config_dict=self._general_configs
TypeError: load_config() got an unexpected keyword argument 'config_dict'

When using simple call

import docker
c = docker.from_env()

Is it a known bug?
What version of docker-py is compatible with docker17.12.0-ce ?

Regards

P.S. downgrading to docker-py2.7 solves the issue

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions