docker-py 1.5.0 fails to ping docker 1.8.3
See original GitHub issueRight after I update the docker-py to 1.5.0, all the ping calls started to fail =(
I don’t know if this is the desired behaviour but if it is, please disconsider this issue.
The result of the .ping is:
APIError: 400 Client Error: Bad Request ("client is newer than server (client API version: 1.21, server API version: 1.20)")
$pip freeze | grep docker-py && python --version && docker version
docker-py==1.5.0
Python 2.7.6
Client:
Version: 1.8.3
API version: 1.20
Go version: go1.4.2
Git commit: f4bf5c7
Built: Mon Oct 12 05:37:18 UTC 2015
OS/Arch: linux/amd64
Server:
Version: 1.8.3
API version: 1.20
Go version: go1.4.2
Git commit: f4bf5c7
Built: Mon Oct 12 05:37:18 UTC 2015
OS/Arch: linux/amd64
Issue Analytics
- State:
- Created 8 years ago
- Comments:9 (4 by maintainers)
Top Results From Across the Web
Changelog — Docker SDK for Python 6.0.1 documentation
Fixed an issue where pulls made with the DockerClient would fail when setting the stream parameter ... utils.ping_registry and utils.ping have been removed....
Read more >docker-py 0.5.3 - PyPI
Python client for Docker. ... An API client for docker written in Python Installation ... Hits the /_ping endpoint of the remote API...
Read more >Docker Engine release notes
Release notes for Docker CE. ... A warning is presented instead of an error and failed build #27412; Fix builder cache issue on...
Read more >docker-sdk-python Documentation - Read the Docs
A Python library for the Docker Engine API. ... Raises docker.errors.APIError – If the server returns an error. ping().
Read more >docker module requirements met, but ansible misses docker-py
But at server B , ansible doent find docker-py allthough it is installed. ... If i try then to start a container through...
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
Fair points.
How about improving the exception message then? Something like:
You’ll have to set the api version if you aren’t using the latest server. You can use either
docker.Client(version='1.20')
ordocker.Client(version='auto')