mirror of
https://github.com/docker/compose.git
synced 2025-07-07 05:44:25 +02:00
Fix volume path setting for linux containers from windows host
This commit is contained in:
parent
c92df92d29
commit
df6fc2f18f
@ -3,7 +3,6 @@ package convert
|
|||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"net/url"
|
"net/url"
|
||||||
"path/filepath"
|
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/pkg/errors"
|
"github.com/pkg/errors"
|
||||||
@ -113,7 +112,8 @@ func (v *volumeInput) parse(name string, s string) error {
|
|||||||
v.name = name
|
v.name = name
|
||||||
v.target = volumeURL.Path
|
v.target = volumeURL.Path
|
||||||
if v.target == "" {
|
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
|
return nil
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user