From af01860fa9151c3e90bf6f0f2414f94c616d59f1 Mon Sep 17 00:00:00 2001 From: Megan Marsh Date: Wed, 27 Mar 2019 15:29:22 -0700 Subject: [PATCH] remove old docker-toolbox limitation. --- builder/docker/driver_docker.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/builder/docker/driver_docker.go b/builder/docker/driver_docker.go index 6b946e954..59b4c984d 100644 --- a/builder/docker/driver_docker.go +++ b/builder/docker/driver_docker.go @@ -8,7 +8,6 @@ import ( "os" "os/exec" "regexp" - // "runtime" "strings" "sync" @@ -270,11 +269,6 @@ func (d *DockerDriver) StartContainer(config *ContainerConfig) (string, error) { args = append(args, "--privileged") } for host, guest := range config.Volumes { - // if runtime.GOOS == "windows" { - // // docker-toolbox can't handle the normal C:\filepath format in CLI - // host = strings.Replace(host, "\\", "/", -1) - // host = strings.Replace(host, "C:/", "/c/", 1) - // } args = append(args, "-v", fmt.Sprintf("%s:%s", host, guest)) } for _, v := range config.RunCommand {