Skip to content

Commit

Permalink
Backport of drivers/docker: refactor use of clients in docker driver …
Browse files Browse the repository at this point in the history
…into release/1.5.x (#17741)

This pull request was automerged via backport-assistant
  • Loading branch information
hc-github-team-nomad-core authored Jun 26, 2023
1 parent d77f0ab commit 14d360b
Show file tree
Hide file tree
Showing 9 changed files with 188 additions and 124 deletions.
3 changes: 3 additions & 0 deletions .changelog/17731.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
drivers/docker: Fixed a bug where long-running docker operations would incorrectly timeout
```
2 changes: 1 addition & 1 deletion drivers/docker/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -762,7 +762,7 @@ func (d *Driver) SetConfig(c *base.Config) error {
d.clientConfig = c.AgentConfig.Driver
}

dockerClient, _, err := d.dockerClients()
dockerClient, err := d.getDockerClient()
if err != nil {
return fmt.Errorf("failed to get docker client: %v", err)
}
Expand Down
Loading

0 comments on commit 14d360b

Please sign in to comment.