tsega
tsega

Reputation: 876

How to stop my vagrant box from updating?

I have the following entry in my VagrantFile:

config.vm.box_check_update = false

Which is what I found in the Vagrant Docs under the "AUTOMATIC UPDATE CHECKING" heading. To my surprise, however, my box updated and cleaned all my installed software and configuration.

What am I missing here? Why in the world have all my stuff disappeared even if the box was updated?

Upvotes: 3

Views: 4690

Answers (1)

jaynp
jaynp

Reputation: 3325

This option just configures checking for updates to notify you, it does not download them automatically. Furthermore, downloading updates does not overwrite any existing VM environments as noted in this question: Update a Vagrant Box?

Therefore, something else must have caused your box to be updated and cleaned. Perhaps you ran, vagrant destroy followed by vagrant init?

Upvotes: 1

Related Questions