Skip to content

Commit

Permalink
refactor: negotiate api version
Browse files Browse the repository at this point in the history
Negotiates API version with docker daemon

Closes #5
  • Loading branch information
MrMarble committed Jun 16, 2021
1 parent 9216f8c commit fb0f67e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docker.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ type Docker struct {
}

func newDocker() (*Docker, error) {
cli, err := client.NewEnvClient()
cli, err := client.NewClientWithOpts(client.FromEnv, client.WithAPIVersionNegotiation())
if err != nil {
return nil, err
}
Expand Down

0 comments on commit fb0f67e

Please sign in to comment.