Hello,

You mix provisioner in the subject and provider on the message.

What do you want to do?

Provider (like virtualbox o vmware ), is to manage a kind of vm using
docker.. if you are in a non linux OS, you can use a proxy vm manually or
leave as is and boot2docker will be used. as a result of this, you will end
with a vm inside docker.

provisioner (like file, shell, pupptet, chef), is to execute commands using
docker, that is, run some commands using the docker binary, say docker pull
to download an image, docker run to execute one (not managed by vagrant,
but you used vagrant to run a docker command), etc.

So basically you can mix both.


on my search of good vagrantfiles to learn from, I can suggest 2 that will
show you these docker provisioner vs provider: Even when I tried them and
got some errors, are quite nice to read:

A.

http://www.maori.geek.nz/post/vagrant_with_docker_how_to_set_up_postgres_elasticsearch_and_redis_on_mac_os_x

here, are 2 vagrantfiles the one for the vms Vagrantfile, and the one for
the proxy Vagrantfile.proxy.

inside the proxy, there is just one line for docker:

config.vm.provision "docker"

This basically will install docker on the proxy vm.

You could also use these to pull the images, like:

config.vm.provision "docker", images: ["ubuntu:latest"]

B
https://github.com/foostan/consul-with-docker

Any questions, feel free to ask.

Alvaro.

-- 
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].
For more options, visit https://groups.google.com/d/optout.

Reply via email to