fix(docker): enable API version negotiation for Docker client (#607)
This commit is contained in:
parent
c58b160f22
commit
afd80aa590
2 changed files with 1 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue