Skip to content

Commit

Permalink
Fix to set API version (moby/moby#32779)
Browse files Browse the repository at this point in the history
  • Loading branch information
3846masa committed Sep 7, 2017
1 parent 442be2f commit bc508d7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion client/client.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package client

import (
"github.com/docker/docker/api/types"
"github.com/docker/docker/client"
)

Expand All @@ -13,6 +14,8 @@ func NewClient() (*client.Client, error) {
if err != nil {
return cli, err
}
cli.UpdateClientVersion(DefaultVersion)
cli.NegotiateAPIVersionPing(types.Ping{
APIVersion: DefaultVersion,
})
return cli, nil
}

0 comments on commit bc508d7

Please sign in to comment.