is it necessary to destroy a Vagrant box after updating it?

166 views
Skip to first unread message

William Arcaya C.

unread,
Oct 6, 2018, 12:26:36 PM10/6/18
to Vagrant
Posts read:



According to these posts I need destroy my box with guest ArchLinux to take effect the changes. I thought that a Vagrant box was like a virtual drive but running under command line. I have a framework ArchLinux-PHP-MariaDB-NGINX in that box, and I don't want to reinstall all of them once again per every update for Vagrant box, so: is it necessary to destroy a Vagrant box after updating it? Which are pros and cons if I don't destroy it?

Thanks in advance.

Alvaro Miranda Aguilera

unread,
Oct 9, 2018, 4:30:46 PM10/9/18
to vagra...@googlegroups.com
hello.

if you do changes to the Vagrantfile, you can use vagrant reload

if you do changes to the provisioners of the box, you can either use

vagrant provision
vagrant reload --provision


if you do changes to the base box, then yes, a destroy/up is needed.

if you are using local boxes, then destroy/up is whats needed.

if you are using boxes in vagrant cloud and a new version is up, then 

vagrant box update
vagrant destroy
vagrant up

will be enough.


What changes and how you are doing them?

Alvaro

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/1fb3e8fc-4115-4f81-9fa8-f216600d1618%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
Alvaro

William Arcaya C.

unread,
Oct 9, 2018, 4:54:13 PM10/9/18
to vagra...@googlegroups.com
Thanks Alvaro,

But my question is: MUST I necessarily to destroy my box? Or is there a problem if I wanna keep it as is now? because I don't wish reinstall again my framework. Or is there a better solution?

Thanks in advance.



Sincerely,

                 William Arcaya C.
《Beatus vir qui suffert tentationem,
Quoniqm cum probates fuerit accipient
                 coronam vitae》

《Sent from my Samsung tablet》

Alvaro Miranda Aguilera

unread,
Oct 10, 2018, 2:07:01 PM10/10/18
to vagra...@googlegroups.com
if you don't destroy, the current box won't apply any change as was created from a previous template.

alvaro
Reply all
Reply to author
Forward
0 new messages