I installed docker python client on Window 10 machine. My machine has python-3.7
version running & it has pypiwin32
version 223
. I am able to import docker client as well but when I am trying to use one of the class from_env()
to create object then it is throwing error:
import docker
docker.from_env()
Traceback (most recent call last):
File "C:\Users\abhishek.jain\AppData\Local\Programs\Python\Python37\lib\site-packages\docker\client.py", line 74, in init self._custom_adapter = NpipeAdapter( NameError: name 'NpipeAdapter' is not defined
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "", line 1, in docker.from_env() File "C:\Users\abhishek.jain\AppData\Local\Programs\Python\Python37\lib\site-packages\docker\client.py", line 27, in from_env return Client.from_env(**kwargs) File "C:\Users\abhishek.jain\AppData\Local\Programs\Python\Python37\lib\site-packages\docker\client.py", line 112, in from_env return cls(version=version, **kwargs_from_env(**kwargs)) File "C:\Users\abhishek.jain\AppData\Local\Programs\Python\Python37\lib\site-packages\docker\client.py", line 79, in init 'Install pypiwin32 package to enable npipe:// support' docker.errors.DockerException: Install pypiwin32 package to enable npipe:// support
Could you please confirm whether docker python client does have support ability for Window 10?