Use higher docker API version to get mounts
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2023-07-28 20:28:59 +02:00
parent 0714b97213
commit faacf7d664

View File

@@ -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")
}