Skip to content

Commit 8fb49da

Browse files
committed
Try using WithAPIVersionNegotiation to avoid Docker API version mismatch issues
See #778 (comment)
1 parent 10578f6 commit 8fb49da

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

internal/docker/deployer.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,10 @@ type Deployer struct {
5656
}
5757

5858
func NewDeployer(deployNamespace string, cfg *config.Complement) (*Deployer, error) {
59-
cli, err := client.NewEnvClient()
59+
cli, err := client.NewClientWithOpts(
60+
client.FromEnv,
61+
client.WithAPIVersionNegotiation(),
62+
)
6063
if err != nil {
6164
return nil, err
6265
}

0 commit comments

Comments
 (0)