Skip to content

Smarter API version handling #1060

Closed
Closed
@rhuss

Description

Description

As described in fabric8io/fabric8-maven-plugin#1200 the minimal version 1.18 used by d-m-p gets rejected for newer Docker daemons (e.g. those having 1.35).

Actually we are compliant with the newer versions (its a minimal version after all), so I see two solutions:

  • If possible, we don't send an API version. However when we use features which require a minimal version of 1.21 this still will still break.

  • We send a test request to the Daemon, and check whether it succeeds. In the return response there's a header Api-Version: which holds the actual Docker daemon version. So if this test request because of a too low version, we can just pick up that version and use it as minimal version for us.

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions