```
File "/home/dimanne/devel/scripts/man/docker/build.py", line 185, in _build
self._build(configs, item.as_group_name(), "", False)
File "/home/dimanne/devel/scripts/man/docker/build.py", line 220, in _build
self._tag(name, last_built_image_name)
File "/home/dimanne/devel/scripts/man/docker/build.py", line 163, in _tag
with docker.APIClient(base_url='unix://var/run/docker.sock') as client: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/docker/api/client.py", line 197, in __init__
self._version = self._retrieve_server_version() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/docker/api/client.py", line 221, in _retrieve_server_version
raise DockerException(
docker.errors.DockerException: Error while fetching server API version: HTTPConnection.request() got an unexpected keyword argument 'chunked'
```
while trying to tag an image from python code:
```
import docker
with docker.APIClient(base_url='unix://var/run/docker.sock') as client:
client.tag(image=image_to_tag, repository=tag_name, tag='latest', force=True)
```
I am having slightly different issue:
``` dimanne/ devel/scripts/ man/docker/ build.py" , line 185, in _build _build( configs, item.as_ group_name( ), "", False) dimanne/ devel/scripts/ man/docker/ build.py" , line 220, in _build image_name) dimanne/ devel/scripts/ man/docker/ build.py" , line 163, in _tag APIClient( base_url= 'unix:/ /var/run/ docker. sock') as client:
^^^^^ ^^^^^^^ ^^^^^^^ ^^^^^^^ ^^^^^^^ ^^^^^^^ ^^^^^^^ ^^^^^^^ ^ python3/ dist-packages/ docker/ api/client. py", line 197, in __init__ server_ version( )
^ ^^^^^^^ ^^^^^^^ ^^^^^^^ ^^^^^^^ ^^ python3/ dist-packages/ docker/ api/client. py", line 221, in _retrieve_ server_ version errors. DockerException : Error while fetching server API version: HTTPConnection. request( ) got an unexpected keyword argument 'chunked'
File "/home/
self.
File "/home/
self._tag(name, last_built_
File "/home/
with docker.
File "/usr/lib/
self._version = self._retrieve_
File "/usr/lib/
raise DockerException(
docker.
```
while trying to tag an image from python code:
``` APIClient( base_url= 'unix:/ /var/run/ docker. sock') as client: tag(image= image_to_ tag, repository= tag_name, tag='latest', force=True)
import docker
with docker.
client.
```