Call out go version required to get client

If you have an old version of go installed on your machine the instruction to 
go get ithub.com/docker/docker/client fails. 

ref https://forums.docker.com/t/possible-doc-bug-for-go-client/47374?u=rkielty

I think that go 1.8 is the required minimum based on the following :
* https://forums.docker.com/t/possible-doc-bug-for-go-client/47374/2?u=rkielty Thanks David Maze!
* I have tested this with go 1.6.2 where it failed as described above
* I have test this with go 1.10 where it succeed

I cannot find a statement where the required minimum go version to get the client is called out
I checked the above doc along with 
* https://godoc.org/github.com/docker/docker/client
* https://github.com/moby/moby/blob/master/client/README.md
This commit is contained in:
Robert Kielty 2018-03-06 09:05:48 +00:00 committed by GitHub
parent eeb765a316
commit cad9753658
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -29,6 +29,9 @@ installed and coexist together.
```bash ```bash
go get github.com/docker/docker/client go get github.com/docker/docker/client
``` ```
The client requires a recent version of Go. Run `go version` and ensure that you
are running at least version 1.8 of Go
[Read the full Docker Engine Go SDK reference](https://godoc.org/github.com/docker/docker/client). [Read the full Docker Engine Go SDK reference](https://godoc.org/github.com/docker/docker/client).