For now, I'm hacking Vagrant:

---
/cygdrive/c/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.2/plugins/providers/docker/driver.orig.rb
2018-02-22
13:11:00.934731600 -0500

+++
/cygdrive/c/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.2/plugins/providers/docker/driver.rb
2018-02-22
13:01:42.703345200 -0500

@@ -48,7 +48,7 @@

         run_cmd += ports.map { |p| ['-p', p.to_s] }

         run_cmd += volumes.map { |v|

           v = v.to_s

-          if false v.include?(":") && @executor.windows?

+          if false && v.include?(":") && @executor.windows?

             host, guest = v.split(":", 2)

             host = Vagrant::Util::Platform.windows_path(host)

             # NOTE: Docker does not support UNC style paths (which also


On Wed, Feb 21, 2018 at 7:31 PM, Jamie Jackson <jamieja...@gmail.com> wrote:

> Vagrant seems to be trying to manipulate my local path, for some reason:
>
> Vagrantfile snippet:
>
>   config.vm.define "centos-jenkins" do |c|
>     c.vm.provider "docker" do |d|
>       d.name = "centos-jenkins2"
>       d.image = "jenkins/jenkins:2.91-alpine"
>       d.ports  = ["9898:8080"]
>       d.volumes = ['/c/Users/15037/workspace/centos-vagrant-fresh:/var/
> jenkins_home']
>     end
>   end
>
>
> Output:
>
>
> Command: ["docker", "run", "--name", "centos-jenkins2", "-d", "-p",
> "9898:8080", "-v", 
> "c\\Users\\15037\\workspace\\centos-vagrant-fresh:/var/jenkins_home",
> "jenkins/jenkins:2.91-alpine", {:notify=>[:stdou
> t, :stderr]}]
>
> Stderr: C:\Program Files\Docker Toolbox/docker.EXE: Error response from
> daemon: create c\Users\15037\workspace\centos-vagrant-fresh:
> "c\\Users\\15037\\workspace\\centos-vagrant-fresh" includes invalid
> characters for a local volume name, only "[a-zA-Z0-9][a-zA-Z0-9_.-]" are
> allowed. If you intended to pass a host directory, use absolute path.
> See 'C:\Program Files\Docker Toolbox/docker.EXE run --help'.
>
>
> How can I get it to leave my path alone? (It works fine from a straight
> `docker run`.)
>
>
>

-- 
This mailing list is governed under the HashiCorp Community Guidelines - 
https://www.hashicorp.com/community-guidelines.html. Behavior in violation of 
those guidelines may result in your removal from this mailing list.

GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
--- 
You received this message because you are subscribed to the Google Groups 
"Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vagrant-up+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vagrant-up/CA%2BonWPcxMBvn%2Ba6EGzFpAUNMkXdouXFS-swBmFihFzPC9q6Fig%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to