Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Older Docker Server versions #141

Closed
lstephen opened this issue Oct 11, 2017 · 1 comment
Closed

Older Docker Server versions #141

lstephen opened this issue Oct 11, 2017 · 1 comment
Milestone

Comments

@lstephen
Copy link
Owner

By default, the latest possible version of docker-py will be installed by pip. But, the latest versions of docker-py will default to a higher version of the Docker API.

This can result in error messages such as: client is newer than server (client API version: 1.30, server API version: 1.24).

Perhaps we should force construi onto the oldest possible version of docker-py. In theory this provides the widest range of compatibility with Docker versions without having to specify an explicit version.

It should also be possible to set the API version when creating the Docker client https://github.com/docker/docker-py/blob/2.1.0/docker/constants.py#L5

@lstephen lstephen added this to the 1.0.0 milestone Oct 11, 2017
@lstephen
Copy link
Owner Author

Better than using minimum, is using auto, https://github.com/docker/docker-py/blob/master/docker/api/client.py#L77

We don't need to use an older version of docker-py in this case either.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant