From df6fc2f18f1a9e36eb6108ac3d583e5b1bee9f2f Mon Sep 17 00:00:00 2001 From: "guillaume.tardif" Date: Mon, 8 Jun 2020 21:36:14 +0200 Subject: [PATCH] Fix volume path setting for linux containers from windows host --- azure/convert/volume.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/azure/convert/volume.go b/azure/convert/volume.go index 0acafdf68..2f05dfd69 100644 --- a/azure/convert/volume.go +++ b/azure/convert/volume.go @@ -3,7 +3,6 @@ package convert import ( "fmt" "net/url" - "path/filepath" "strings" "github.com/pkg/errors" @@ -113,7 +112,8 @@ func (v *volumeInput) parse(name string, s string) error { v.name = name v.target = volumeURL.Path if v.target == "" { - v.target = filepath.Join("/run/volumes/", v.share) + // Do not use filepath.Join, on Windows it will replace / by \ + v.target = "/run/volumes/" + v.share } return nil }