diff --git a/opts/mount.go b/opts/mount.go index 3aa9849421ac..ad547e48700d 100644 --- a/opts/mount.go +++ b/opts/mount.go @@ -4,6 +4,7 @@ import ( "encoding/csv" "fmt" "os" + "path/filepath" "strconv" "strings" @@ -88,7 +89,7 @@ func (m *MountOpt) Set(value string) error { case "type": mount.Type = mounttypes.Type(strings.ToLower(value)) case "source", "src": - mount.Source = value + mount.Source, _ = filepath.Abs(value) case "target", "dst", "destination": mount.Target = value case "readonly", "ro":