question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

docker-py 1.5.0 fails to ping docker 1.8.3

See original GitHub issue

Right 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:closed
  • Created 8 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
TomasTomecekcommented, Dec 9, 2015

Fair points.

How about improving the exception message then? Something like:

You have requested daemon API version 1.21 but it supports only 1.20.
Either supply exact version to Client `Client(version="1.20")` or let
client pick it automatically: `Client(version="auto")`
3reactions
dnephincommented, Dec 7, 2015

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') or docker.Client(version='auto')

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found