GithubHelp home page GithubHelp logo

What would be the best way to specify version of docker api, so that go-dockerclient can adjust requests and response expectations accordingly? about go-dockerclient HOT 4 CLOSED

kevintoormimik avatar kevintoormimik commented on June 3, 2024
What would be the best way to specify version of docker api, so that go-dockerclient can adjust requests and response expectations accordingly?

from go-dockerclient.

Comments (4)

fsouza avatar fsouza commented on June 3, 2024

Does NewVersionedClient (or some of the variants) work for you?

from go-dockerclient.

kevintoormimik avatar kevintoormimik commented on June 3, 2024

@fsouza I am not using the library directly, instead, another software Anax (open-horizon/anax) is using go-dockerclient. So interactions looks like this:

Docker Engine (calls are only forwarded if Shim does not want to respond directly) <-> Shim <-> Anax (software which is using go-dockerclient)

In this setup, is there a point in which go-dockerclient would send request to see what docker API version to use to interact with Docker Engine (in our case with Shim instead initially), so that Shim can interject can report its own supported docker API version?

OR

Whats the criteria used by go-dockerclient to decide which docker API version to use if NewVersionedClient is not used?

P.S. I accidentally closed the issue, so reopened.

from go-dockerclient.

fsouza avatar fsouza commented on June 3, 2024

Hmm, I think this should be an issue/feature-request in anax then.

Whats the criteria used by go-dockerclient to decide which docker API version to use if NewVersionedClient is not used?

In that case, go-dockerclient doesn't use versioned URLs, which means the latest supported by the remote Docker engine.

from go-dockerclient.

kevintoormimik avatar kevintoormimik commented on June 3, 2024

Understood. Thank you

from go-dockerclient.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.