fix(docker): enable API version negotiation for Docker client (#607)

This commit is contained in:
Boshi Lian 2025-06-02 10:24:29 -07:00 committed by GitHub
parent c58b160f22
commit afd80aa590
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 1 additions and 2 deletions

View file

@ -102,7 +102,6 @@ services:
- SSHPIPERD_DEBUG=${SSHPIPERD_DEBUG}
- SSHPIPERD_ALLOWED_PROXY_ADDRESSES=0.0.0.0/0
- SSHPIPERD_SERVER_KEY_GENERATE_MODE=notexist
- DOCKER_API_VERSION=1.40
build:
context: ../
target: testrunner

View file

@ -26,7 +26,7 @@ type plugin struct {
}
func newDockerPlugin() (*plugin, error) {
cli, err := client.NewClientWithOpts(client.FromEnv)
cli, err := client.NewClientWithOpts(client.FromEnv, client.WithAPIVersionNegotiation())
if err != nil {
return nil, err
}