Skip to content

Commit

Permalink
Merge pull request #42 from coveo/dind-fix
Browse files Browse the repository at this point in the history
Glide up and fix error when used with Docker in Docker
  • Loading branch information
julienduchesne authored Jan 3, 2019
2 parents 6ceddd3 + c68cd66 commit c7f73b8
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 32 deletions.
3 changes: 2 additions & 1 deletion docker.go
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,8 @@ func GetActualImageVersion() string {

func getDockerClient() (*client.Client, context.Context) {
if dockerClient == nil {
dockerClient = must(client.NewClientWithOpts(client.WithVersion(minimumDockerVersion))).(*client.Client)
os.Setenv("DOCKER_API_VERSION", minimumDockerVersion)
dockerClient = must(client.NewEnvClient()).(*client.Client)
dockerContext = context.Background()
}
return dockerClient, dockerContext
Expand Down
70 changes: 39 additions & 31 deletions glide.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c7f73b8

Please sign in to comment.