My actual question is, how to get specific version of go-lang docker client? The latest version I can find is v17.03.2-ce which is a year or older. I want to use docker 1.37 which has TaskLogs. But could not find one with this specific version. If I choose the master branch, this will give me v1.39 but my installed docker client API is v1.38 which throws error "Error response from daemon: client version 1.39 is too new. Maximum supported API version is 1.38".
Why I need v1.37? I was using v1.13.1, which was working fine. Now I need to implement TaskLogs grabber and this is not available in v1.13.1.
SOLVED
It was really simple:
In Gopkg.toml add:
To use any version create the client with the specific version:
That's it.