From cad9753658dc4df347b6c3419207b4ca78ebbcde Mon Sep 17 00:00:00 2001 From: Robert Kielty <208059+RobertKielty@users.noreply.github.com> Date: Tue, 6 Mar 2018 09:05:48 +0000 Subject: [PATCH] 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 --- develop/sdk/index.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/develop/sdk/index.md b/develop/sdk/index.md index 69bad7962c..87350ba3ee 100644 --- a/develop/sdk/index.md +++ b/develop/sdk/index.md @@ -29,6 +29,9 @@ installed and coexist together. ```bash 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).