Skip to content
This repository has been archived by the owner on Nov 23, 2019. It is now read-only.

How to use engine-api to support api version 1.19, 1.18 or lower? #260

Open
allencloud opened this issue Jun 5, 2016 · 3 comments
Open

Comments

@allencloud
Copy link
Contributor

As swarm uses engine-api to manage docker engines , there must be some api compatibility between swarm and docker engine.

Now latest version of Swarm is 1.2.3, it uses engine-api. If engine-api does not support lower api version, there is no way for Swarm to support lower version of docker engine, such as docker 1.6.x, docker 1.7.x.

I was wondering how to use engine-api to support api version 1.19, 1.18 or lower?

related issue in swarm:docker-archive/classicswarm#2330

Thanks in advance.

@vdemeester
Copy link
Contributor

@allencloud which incompatibilaties did you have ? 😇

@allencloud
Copy link
Contributor Author

@vdemeester
In docker version <= 1.6.2, in /info API, field Debug and SwapLimit is 0 which is a number, while in engine-api it should be the type of bool, so imcompatiblity happens.

related issue: docker-archive/classicswarm#2150

And in docker version less than <= 1.7.1, /events API does not work.

@allencloud
Copy link
Contributor Author

@vdemeester
Can you help me to provide one example that how to use engine-api to communicate with lower version of docker engine such as 1.6.2?
To be honest, in our production environment, there still some can not easily updated to newer docker version. But we still hope to use engine-api which seems to be the future standard.

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

No branches or pull requests

2 participants