Skip to content
This repository has been archived by the owner on Feb 9, 2023. It is now read-only.

Commit

Permalink
Update docker.go
Browse files Browse the repository at this point in the history
  • Loading branch information
LordRalex authored Jan 1, 2018
1 parent d10b9b6 commit 7d39593
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions environments/docker.go
Original file line number Diff line number Diff line change
Expand Up @@ -236,8 +236,9 @@ func (d *docker) getClient() (*client.Client, error) {
var err error = nil
if d.cli == nil {
d.cli, err = client.NewEnvClient()
}
d.cli.NegotiateAPIVersion(ctx)
ctx := context.Background()
d.cli.NegotiateAPIVersion(ctx)
}
return d.cli, err
}

Expand Down

0 comments on commit 7d39593

Please sign in to comment.