From b333e5cd82e92fc944f615cfdc521e8fc000e70c Mon Sep 17 00:00:00 2001 From: Chris Roberts Date: Thu, 11 May 2017 14:00:53 -0700 Subject: [PATCH] Fix argument construction when adding dockerfile path Fixes #7914 --- plugins/providers/docker/action/build.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/providers/docker/action/build.rb b/plugins/providers/docker/action/build.rb index 0cd613045..f6c071fc0 100644 --- a/plugins/providers/docker/action/build.rb +++ b/plugins/providers/docker/action/build.rb @@ -43,7 +43,7 @@ module VagrantPlugins dockerfile = machine.provider_config.dockerfile dockerfile_path = File.join(build_dir, dockerfile) - args.push("--file=\"#{dockerfile_path}\"") + args.push("--file").push(dockerfile_path) machine.ui.output( I18n.t("docker_provider.building_named_dockerfile", file: machine.provider_config.dockerfile))