I don't know Vagrant much, but judging from the name of the command and the log output, vagrant destroy completely deletes the VM, and so vagrant up has to recreate it again, loosing any changes and work you've done inside the VM. There appears to be a vagrant halt command which only shuts down instead of removing the VM, keeping all changes.
Though if you want to continue to use destroy in your workflow, you should tell Vagrant to change the repositories config file (before it tries to update them). Or maybe you can also edit some templates?
1
u/DasSkelett Aug 19 '22
I don't know Vagrant much, but judging from the name of the command and the log output,
vagrant destroycompletely deletes the VM, and sovagrant uphas to recreate it again, loosing any changes and work you've done inside the VM. There appears to be avagrant haltcommand which only shuts down instead of removing the VM, keeping all changes.Though if you want to continue to use
destroyin your workflow, you should tell Vagrant to change the repositories config file (before it tries to update them). Or maybe you can also edit some templates?