vagrant up --provider docker

36 views
Skip to first unread message

Vincenzo D'Amore

unread,
Nov 15, 2016, 7:18:24 AM11/15/16
to Vagrant
Hi all

given that now docker is available directly in MacOS is there any chance to not use boot2docker and go directly on docker?

Best regards,
Vincenzo

Alvaro Miranda Aguilera

unread,
Nov 15, 2016, 7:58:15 AM11/15/16
to vagra...@googlegroups.com
Hello.

If your environment setup DOCKER_HOST

per 1.8.7 you should be able to disable the VM creation.

commit:


--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/ceb093d5-ccf5-4b9c-8e84-1ade778377a9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Alvaro

Vincenzo D'Amore

unread,
Nov 16, 2016, 12:29:43 PM11/16/16
to Vagrant
Great. It is not clear how to setup DOCKER_HOST, what is it, an environment variable?

I tried with:

export DOCKER_HOST=TRUE

or 

export DOCKER_HOST=localhost

and then execute

vagrant up --provider docker

but vagrant still try to download boot2docker.



On Tuesday, November 15, 2016 at 1:58:15 PM UTC+1, Alvaro Miranda Aguilera wrote:
Hello.

If your environment setup DOCKER_HOST

per 1.8.7 you should be able to disable the VM creation.

commit:

On Tue, Nov 15, 2016 at 1:18 PM, Vincenzo D'Amore <v.da...@gmail.com> wrote:
Hi all

given that now docker is available directly in MacOS is there any chance to not use boot2docker and go directly on docker?

Best regards,
Vincenzo

--
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+...@googlegroups.com.



--
Alvaro

Alvaro Miranda Aguilera

unread,
Nov 16, 2016, 3:56:32 PM11/16/16
to vagra...@googlegroups.com
hello

first, inside the docker block, you need to add force_host_vm = false

the variable DOCKER_HOST is how you tell docker command to talk to a docker host, in this case the vm created by docker engine.

check docker documentation for the correct values.

Alvaro.

To unsubscribe from this group and stop receiving emails from it, send an email to vagrant-up+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/00033ce5-1185-4593-985a-6cd9e6705eea%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Alvaro

Reply all
Reply to author
Forward
0 new messages