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%2BonWPcDHWLTE83ueWYM6Ec4q99yghv2KNDecMB%2Bm%3D8F%3DJ8VYg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to