From faacf7d664a4fc91f4869201399edc2c8d165c9a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roman=20Van=C3=AD=C4=8Dek?= Date: Fri, 28 Jul 2023 20:28:59 +0200 Subject: [PATCH] Use higher docker API version to get mounts --- plugin.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin.go b/plugin.go index ce839f2..8d95c67 100644 --- a/plugin.go +++ b/plugin.go @@ -133,7 +133,7 @@ func trace(cmd *exec.Cmd) { func getWorkDirPath(p Plugin, ctx context.Context) (string, string, error) { // Connect to the docker - docker, err := docker.NewClient("unix://" + daemon.StdDockerSocketPath, "v1.13.1", nil, nil) + docker, err := docker.NewClient("unix://" + daemon.StdDockerSocketPath, "v1.40", nil, nil) if err != nil { return "", "", errors.Wrap(err, "failed to create docker client") }