Skip to content
This repository has been archived by the owner on Jan 19, 2024. It is now read-only.

Add CLI flag to specify Docker version #39

Open
mk4no1 opened this issue Dec 22, 2021 · 1 comment
Open

Add CLI flag to specify Docker version #39

mk4no1 opened this issue Dec 22, 2021 · 1 comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@mk4no1
Copy link

mk4no1 commented Dec 22, 2021

my docker api version is 1.37 ,Echo is Docker API was unreachable: Error response from daemon: client version 1.39 is too new. Maximum supported API version is 1.37 ;Docker API was unreachable:error during connect: Get "http://00:0C:29:C6:5D:36:2375/v1.39/info": dial tcp: lookup 00:0C:29:C6:5D:36: no such host

@Ullaakut
Copy link
Owner

Hi @mk4no1 ! Thanks for opening this issue.

The error is pretty clear: there is a version mismatch. The docker API you are attempting to attack uses v1.37 while Gorsair expects the v1.39.

This can be fixed by passing the argument 1.37 instead of 1.39 in the calls to client.NewClientWithOpts.

Feel free to implement this feature if you'd like, or I can leave this as a feature ticket to be taken by whoever is interested. It's pretty simple, the tasks would be:

  • Add a CLI flag called --docker-version that is v1.39 by default but can be set to whatever
  • Pass this flag to the call(s) to client.NewClientWithOpts

It should be quite fast and easy to implement, however I do not have time to work on Gorsair at the moment unfortunately.

@Ullaakut Ullaakut added enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed labels Dec 23, 2021
@Ullaakut Ullaakut changed the title Detection error problem Add CLI flag to specify Docker version Dec 23, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants