Hello,

You actually measure each stage to find where the system goes slow, and one
potential fix is create your own base box that include all the required
bits.

mini:t2 kikitux$ time vagrant up --no-provision --provider virtualbox

Bringing machine 'default' up with 'virtualbox' provider...

*==> default: Box 'ubuntu/trusty64' could not be found. Attempting to find
and install...*

real 5m53.961s

6 minutes to download and create a VM, but no provisioning.


Then you can do  time vagrant reload --provision  to test how long it will
take run the provision step


So most of the time is gone installing docker on the VM.


If you use a base box that includes docker, it will be faster.


Alvaro.



On Sat, Mar 19, 2016 at 7:06 AM, Joaquin Menchaca <[email protected]>
wrote:

> I was wondering if this was a bug or if this is normal?
>
> Right now, it's taking about 21 minutes to provision a small hello world
> docker image.  This is not including the 34 seconds it takes to bring up
> the initial system.
>
> The initial download takes most of the time, then afterwards, it works
> fairly quickly.
>
> Vagrant.configure(2) do |config|
>
>   config.vm.box = "ubuntu/trusty64"
>
>   config.vm.network "forwarded_port", guest: 8080, host: 8080
>
>
>   config.vm.provision "docker" do |docker|
>
>     docker.build_image "/vagrant", args: "-t web"
>
>     docker.run "web" , args: "-p 8080:8080"
>
>   end
>
> end
>
> --
> 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/c1b3f463-ab4c-4a4c-a033-8982f11d649c%40googlegroups.com
> <https://groups.google.com/d/msgid/vagrant-up/c1b3f463-ab4c-4a4c-a033-8982f11d649c%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAHqq0exi%2B4RPKsG%2B9L7HZtDuqMhX3pk1yD2qr%2B2AXF2LS_a-fg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to