hello

What happen if you do

vagrant reload --provider=docker

?


On Tue, Jul 15, 2014 at 3:59 AM, Adam Gotterer <[email protected]> wrote:

> Anytime I run "vagrant reload" it eliminates my already provisioned docker
> containers. It then needs to download and provision them again from
> scratch. Any ideas?
>
> VAGRANTFILE_API_VERSION = "2"
>
> Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
>   config.vm.host_name = "dev"
>
>   config.vm.box_url = "
> https://cloud-images.ubuntu.com/vagrant/trusty/current/trusty-server-cloudimg-amd64-vagrant-disk1.box
> "
>   config.vm.box = "trusty64"
>
>   config.ssh.forward_agent = true
>
>   config.vm.network :private_network, ip: "192.168.10.12"
>   config.vm.network :forwarded_port, guest: 8200, host: 9200
>   config.vm.network :forwarded_port, guest: 8000, host: 9000
>   config.vm.network :forwarded_port, guest: 6379, host: 6379
>   config.vm.network :forwarded_port, guest: 27017, host: 27017
>   config.vm.network :forwarded_port, guest: 8888, host: 8888
>
>   config.vm.provision "docker" do |d|
>     d.pull_images 'dockerfile/redis'
>     d.pull_images 'dockerfile/mongodb'
>
>     d.run 'dockerfile/redis', args: "-p 6379:6379", name: 'redis'
>     d.run 'dockerfile/mongodb', args: "-p 27017:27017", name: 'mongodb'
>   end
>
>   config.vm.provision 'ansible' do |a|
>     a.playbook = 'ansible/playbook.yml'
>     a.verbose = 'v'
>   end
> end
>
> --
> 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.
>

-- 
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