fix for issue 8608
This commit is contained in:
parent
010c369e32
commit
51716c5ef0
|
@ -48,7 +48,7 @@ module VagrantPlugins
|
||||||
run_cmd += ports.map { |p| ['-p', p.to_s] }
|
run_cmd += ports.map { |p| ['-p', p.to_s] }
|
||||||
run_cmd += volumes.map { |v|
|
run_cmd += volumes.map { |v|
|
||||||
v = v.to_s
|
v = v.to_s
|
||||||
if v.include?(":") && (Vagrant::Util::Platform.windows? || Vagrant::Util::Platform.wsl?)
|
if v.include?(":") && @executor.windows?
|
||||||
host, guest = v.split(":", 2)
|
host, guest = v.split(":", 2)
|
||||||
host = Vagrant::Util::Platform.windows_path(host)
|
host = Vagrant::Util::Platform.windows_path(host)
|
||||||
# NOTE: Docker does not support UNC style paths (which also
|
# NOTE: Docker does not support UNC style paths (which also
|
||||||
|
|
|
@ -29,6 +29,10 @@ module VagrantPlugins
|
||||||
|
|
||||||
result.stdout
|
result.stdout
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def windows?
|
||||||
|
::Vagrant::Util::Platform.windows? || ::Vagrant::Util::Platform.wsl?
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -65,6 +65,10 @@ module VagrantPlugins
|
||||||
stdout.chomp
|
stdout.chomp
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def windows?
|
||||||
|
false
|
||||||
|
end
|
||||||
|
|
||||||
protected
|
protected
|
||||||
|
|
||||||
def ssh_run(cmd)
|
def ssh_run(cmd)
|
||||||
|
|
Loading…
Reference in New Issue