Skip to content
This repository has been archived by the owner on Mar 16, 2024. It is now read-only.

Commit

Permalink
Merge pull request #2427 from ibuildthecloud/main
Browse files Browse the repository at this point in the history
Add docker client API version negotiation
  • Loading branch information
ibuildthecloud authored Jan 18, 2024
2 parents 1fc822f + 41636ee commit f2b89cf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion pkg/controller/local/services.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/local/docker.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit f2b89cf

Please sign in to comment.