diff options
author | maride <maride@darknebu.la> | 2018-09-04 16:32:30 +0200 |
---|---|---|
committer | maride <maride@darknebu.la> | 2018-09-04 16:32:30 +0200 |
commit | cd3b7488d3851d4b21321b4b257bf85f2e9ffa08 (patch) | |
tree | 46b005980afd182e53d0f18934e5b282a8c1fab3 | |
parent | 76bc68cb6abb3105bfb154fc59ecdfd54f8ff564 (diff) |
Use fixed Docker API version
-rw-r--r-- | src/docker.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/docker.go b/src/docker.go index 9bc667b..eefd8c8 100644 --- a/src/docker.go +++ b/src/docker.go @@ -5,6 +5,10 @@ import ( "context" ) +const ( + fixedDockerVersion = "1.38" +) + var ( dockerCtx context.Context dockerCli *client.Client @@ -18,7 +22,7 @@ func setupContext() { func setupDockerCLI() (err error) { if dockerCli == nil { - dockerCli, err = client.NewEnvClient() + dockerCli, err = client.NewClientWithOpts(client.WithVersion(fixedDockerVersion)) } return err |