diff options
Diffstat (limited to 'src')
-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 |