Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions internal/dockerexec/docker.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ type Options struct {
}

func New(opts *Options) (*Docker, error) {
// Typically, the version is dicted by the Docker API version in the CI (GitHub Actions).
c, err := client.NewClientWithOpts(client.FromEnv, client.WithVersion("1.43"))
// Negotiate API version with the daemon to avoid hard-coded mismatches across environments.
c, err := client.NewClientWithOpts(client.FromEnv, client.WithAPIVersionNegotiation())
if err != nil {
return nil, err
}
Expand Down
Loading