2013年8月28日 星期三

What actually "vagrant box repackage" does? - Google Groups

What actually "vagrant box repackage" does? - Google Groups:

Let's say you "vagrant box add" a box named base.box from an URL
vagrant will extract base.box in your vagrant home folder (the box format is just a tar file)
in my case ~/.vagrant.d/boxes/base

In that folder you will see files like :
  box-disk1.vmdk
  box.ovf
  Vagrantfile

When you run "vagrant box repackage base", vagrant will create a new tar file named base.box containing those 3 files. So now you can pass around this box to your friends

沒有留言:

張貼留言