diff --git a/Makefile b/Makefile index 23efe969b..003b96a00 100644 --- a/Makefile +++ b/Makefile @@ -7,7 +7,7 @@ tidy: dev-reset: build docker build -t localdev . - ACORN_IMAGE=localdev ACORN_LOCAL_PORT=6442 acorn local start --delete + ACORN_IMAGE=localdev ACORN_LOCAL_PORT=6442 ./bin/acorn local start --delete dev-install: [ -e .dev-image ] && go mod vendor ; go run main.go install --dev "$$(cat .dev-image)"; rm -rf vendor diff --git a/pkg/controller/local/services.go b/pkg/controller/local/services.go index 8bd66ddec..a0bd8dcf4 100644 --- a/pkg/controller/local/services.go +++ b/pkg/controller/local/services.go @@ -26,7 +26,7 @@ type Handler struct { } func NewHandler() (*Handler, error) { - c, err := client.NewClientWithOpts(client.FromEnv) + c, err := client.NewClientWithOpts(client.FromEnv, client.WithAPIVersionNegotiation()) if err != nil { return nil, err } diff --git a/pkg/local/docker.go b/pkg/local/docker.go index 33076a08a..df988fd57 100644 --- a/pkg/local/docker.go +++ b/pkg/local/docker.go @@ -43,7 +43,7 @@ type Container struct { } func NewContainer(_ context.Context) (*Container, error) { - cli, err := client.NewClientWithOpts(client.FromEnv) + cli, err := client.NewClientWithOpts(client.FromEnv, client.WithAPIVersionNegotiation()) if err != nil { return nil, err }