Skip to content
This repository has been archived by the owner on Feb 1, 2021. It is now read-only.

Docker and Swarm ReST APIs differ #687

Closed
vlerenc opened this issue Apr 30, 2015 · 1 comment · Fixed by #785
Closed

Docker and Swarm ReST APIs differ #687

vlerenc opened this issue Apr 30, 2015 · 1 comment · Fixed by #785
Assignees
Milestone

Comments

@vlerenc
Copy link

vlerenc commented Apr 30, 2015

Hello guys,

while we (@holgerkoser and me) were trying to make https://github.com/cf-platform-eng/docker-boshrelease work with Swarm instead of Docker (by swapping it under the hood), we noticed one compatibility issue between the two ReST APIs (Swarm vs. Docker):

According to https://docs.docker.com/swarm/#swarm-api, Swarm should be compatible with Docker, except for the points mentioned in https://docs.docker.com/swarm/API/.

We worked-around the issue by locally patching the project, but that's effectively now a fork. If possible, it would be great if in the above Swarm handlers.go, "APIVersion" could simply be replaced with "ApiVersion". That would solve the issue and make case-sensitive property access work.

Other than that, swapping Docker with Swarm worked like a charme. Thank you for these great tools. They are awesome!

Cheers, Vedran

@aluzzardi
Copy link
Contributor

Thanks for reporting this!

@vieux: Care to take a look? I'm worried this will break our golinting :/

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

Successfully merging a pull request may close this issue.

3 participants