Hi IM having 2 problems when using the vmware_fusion and docker providers 
together in multi-machine config. I am using the native docker base images 
i.e. force_host_vm 
<https://www.vagrantup.com/docs/multi-machine/#force_host_vm> = false

below is the Vagantfile

# -*- mode: ruby -*-

# vi: set ft=ruby :


Vagrant.configure("2") do |config|


 config.vm.define "db" do |db|

    db.ssh.username = "root"

    db.ssh.password  = "xxxxx"

    db.ssh.host = "localhost"

    db.ssh.port = 2202


    db.vm.provider "docker" do |d|

       d.image = "xxxxx:8091/ims-oracle"

       d.force_host_vm = false

       d.ports = [  "49162:1521" ]

       d.has_ssh = true

    end


  end



  config.vm.define "adc" do |adc|

    adc.vm.box = "nick/win2012core-ad"

    adc.vm.box_url = 
"http://xxxx:8081/repository/vagrant/nick/win2012core-ad/metadata.json";


    adc.vm.network "forwarded_port", guest: 88, host: 10088, protocol: "tcp"

    adc.vm.network "forwarded_port", guest: 88, host: 10088, protocol: "udp"

    adc.vm.network "forwarded_port", guest: 53, host: 10053, protocol: "tcp"

    adc.vm.network "forwarded_port", guest: 53, host: 10053, protocol: "udp"

  end


end

~            

Problem 1:
I am unable to get ssh access to the docker container when using the docker 
provider in a multi machine config, however if I use it in a docker only 
config works fine.

output from docker ps is

CONTAINER ID        IMAGE                       COMMAND                  
CREATED             STATUS              PORTS                               
        NAMES

bca7bcd2ce13        dhpsciq01:8091/ims-oracle   "/bin/sh -c '/usr/..."   14 
hours ago        Up 21 seconds       22/tcp, 8080/tcp, 
0.0.0.0:49162->1521/tcp   ims_db_1490789906


when using docker only config


# -*- mode: ruby -*-

# vi: set ft=ruby :


Vagrant.configure("2") do |config|

  config.ssh.username = "root"

  config.ssh.password = "admin"

  config.ssh.host = "localhost"

  config.ssh.port = 2202


  config.vm.provider "docker" do |d|

#    d.vagrant_vagrantfile = "./docker-host-vm/Vagrantfile"

    d.image = "dhpsciq01:8091/ims-oracle"

    d.has_ssh = true

    d.force_host_vm = false

    d.ports = [  "49162:1521" ]

  end

end


the output from docker ps is:


CONTAINER ID        IMAGE                       COMMAND                  
CREATED             STATUS              PORTS                               
                        NAMES

6363f2bd65cf        dhpsciq01:8091/ims-oracle   "/bin/sh -c '/usr/..."   21 
hours ago        Up 14 seconds       8080/tcp, 127.0.0.1:2202->22/tcp, 
0.0.0.0:49162->1521/tcp   oracle-sacs_default_1490715212

and i can ssh into the box. Why is this?

Problem 2: 

Im struggling to figure out how to configure networking between the vmware 
 VM and the docker container. Does anyone have any bright ideas on this?

Nick

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vagrant-up/11cbfd45-26be-4379-b1ec-40f29ad564f9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to